Scratch Modules Gallery

Exponentiation

Compute a to the power of b.

math

Scripts

main

define (a :: custom-arg) ^ (b :: custom-arg)
set [result v] to ([e ^ v] of ((b :: custom-arg) * ([ln v] of (a :: custom-arg))))

Variables / Lists

NameTypeScope
result
VariableSprite

Notes

The base (a :: custom-arg) must be a positive number.

Cover Preview