Functions

exp2

Supported By

Syntax

[the] exp2 of factor

exp2 ( expression )

Factor and expression yield integers, numbers, or complexes.

Example

put the exp2 of 16 -- yields 65536

Description

The exp2 function returns the value of 2 raised to the power specified by its argument. That is, it returns:

2^number

The exp2 function is faster and more accurate than using the above formula.

If the argument is an integer or a number, a number is returned. If the argument is a complex, a complex is returned.

See Also

exp, exp1, exp10, ln, ln1, log2, log10, log