Navigation

Operators and Keywords

Function List:

C++ API

: nextpow2 (x)

Compute the exponent for the smallest power of two larger than the input.

For each element in the input array x, return the first integer n such that 2^n ≥ abs (x).

See also: pow2, log2.

Package: octave