exp#
- class saiunit.math.exp(x, unit_to_scale=None, **kwargs)#
Calculate the exponential of all elements in the input.
If
xis a Quantity with physical units,unit_to_scalemust be provided to convertxto a dimensionless value first.- Parameters:
- Returns:
out – Element-wise exponential.
- Return type:
Array
Examples
>>> import saiunit as u >>> import jax.numpy as jnp >>> u.math.exp(jnp.array([0.0, 1.0])) Array([1. , 2.7182817], dtype=float32)