Editors Note: Bug http://wiki.neurohack.com/transcendence/trac/ticket/64 has been fixed, or no longer causes a crash at least. (Star Weaver Dec-2010)
Functions Documentation
View Function Edit Function
Name power
Syntax (power base exponent)
Argument List base: x in x^y
exponent: y in x^y
Returns number: base raised to the exponent power: base^exponent
Category math, 0.99
Description Returns the the first argument raised to the second argument.
Example In the debug console:
(power 5 2)
25
Comment If exponent is a negative number, the result will always be zero, as they produce fractions and there is no floating point support.
There is presently a bug wherein raising something to the 0th power returns zero instead of one; see: http://wiki.neurohack.com/transcendence/trac/ticket/537