Function <pow>

Synopsis

<pow> computes the value of its first argument raised to the power of its second argument.

Arguments

<pow> takes two arguments: x and y. If fewer arguments are given, an error occurs.

Return Values

<pow> returns the value of x (its first argument) raised to the power of y (its second argument).

If x is a finite value less than 0, and y is a finite non-integer, <pow> returns an indeterminate result.

If the result overflows, <pow> returns an indeterminate result.

If result underflows, and is not representable, 0 is returned.

Except as specified below, if either argument is indeterminate, the result is also indeterminate.

If x is 1, the result is 1 (even if y is indeterminate).

If y is 0, the result is 1 (even if x is indeterminate).

If x is 0, and y is an odd integer greater than 0, the result is 0.

If x is 0, and y greater than 0 and not an odd integer, the result is 0.

If x is 0, and y is less than 0, <pow> returns an indeterminate result.

Example 7. 

  <libxexpr:pow>10 2</libxexpr:pow> --> <float>100</float>