Scratch Modules Gallery

Exponentiation

Compute a to the power of b.

mathexponentiation

Contributors: LuYifei2011

Scripts

Main

define (a :: custom-arg) ^ (b :: custom-arg)
set [a^b v] to (1)
repeat (b :: custom-arg)
  set [a^b v] to ((a^b) * (a :: custom-arg))
end

Variables / Lists

NameTypeScope
a^bVariableSprite