David
Farruggio

MathGenie

pow2

Base 2 power and scale floating-point numbers

Syntax and Description

pow2(Y) returns an array X whose elements are 2 raised to the power Y.
pow2(F,E) computes x = f * 2^e for corresponding elements of F and E. The result is computed quickly by simply adding E to the floating-point exponent of F. Arguments F and E are real and integer arrays, respectively.

Back to functions