Navigation

Operators and Keywords

Function List:

C++ API

: power (x, y)

Return the element-by-element operation of x raised to the y power.

This function and x .^ y are equivalent.

If several complex results are possible, returns the one with smallest non-negative argument (angle). Use realpow, realsqrt, cbrt, or nthroot if a real result is preferred.

See also: mpower, realpow, realsqrt, cbrt, nthroot.

Package: octave