2g: Unsigned Powers
+pow
+powAccepts
Produces
Source
++ pow
~/ %pow
|= [a=@ b=@]
?: =(b 0) 1
|- ?: =(b 1) a
=+ c=$(b (div b 2))
=+ d=(mul c c)
?~ (dis b 1) d (mul d a)Examples
+sqt
+sqtAccepts
Produces
Source
Examples
Last updated