exp()#
Returns Euler’s number e (2.71828…) raised to the power of the n
parameter.
Examples#
def setup():
v1 = py5.exp(1.0)
py5.println(v1) # Prints "2.718281828459045"
Description#
Returns Euler’s number e (2.71828…) raised to the power of the n
parameter. This function is the compliment to log().
This function makes a call to the numpy exp()
function.
Signatures#
exp(
value: Union[float, npt.ArrayLike] # exponent to raise
) -> Union[float, npt.NDArray]
Updated on March 06, 2023 02:49:26am UTC