Qu

exp2

Builtin index · Core maths

result = exp2(x)

Input: x · Output: result

What it is

2^x, elementwise, real only. x is a scalar, Vec, or Mat/Signal.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
result = exp2(x)
x scalar, Vec, Mat, or Signalnot documented yet
result —
Returns exactly the same type and shape as x.

Examples

No documentation example calls this form yet. The Core maths chapter is where one belongs.

How it works

exp2(x) = 2^x: real-only (unlike exp/sqrt/log, 2^z for complex z is not a commonly-needed EIS/DSP primitive here, and nothing in this batch's brief asked for it).

From the note above this builtin in the interpreter, where the reasoning was written down as it was built.