This reference is for Processing 3.0+. If you have a previous version, use the reference included with your software in the Help menu. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.

Name

exp()

Examples
float v1 = exp(1.0);
println(v1);  // Prints "2.7182817"

Description Returns Euler's number e (2.71828...) raised to the power of the n parameter.
Syntax
exp(n)
Parameters
n float: exponent to raise
Returnsfloat
Updated on January 1, 2021 03:38:06am EST