Loading

**

math operators

Returns the value of the first argument raised to the power of the second argument.

The ** operator consumes two parameters from the top of the stack (a base b and an exponent n) and pushes back the result raising b to the power of n, i.e. bn. For special cases see pow().

Since 2.7.1, this function can be applied to a LIST of numerical values and a numerical value. Considering this function as F, the result of $a [ $b $c ] F is [ $a $b F $a $c F ] and the result of [ $a $b ] $c F is [ $a $c F $b $c F ].

Also since 2.7.1, this function can be applied to a GTS of numerical values. This is very similar to how this function works on LISTs, considering the values of the GTS. In that case the result is a GTS.

** is available since version 1.0.0.

See also

Signatures

Examples

2 8 ** 2.5 2 **