exp#

bamengine.ops.exp(a)[source]#

Exponential of array elements (e^x).

Parameters:

a (array) – Input array.

Returns:

Exponential of each element.

Return type:

array

Examples

>>> import bamengine.ops as ops
>>> growth_rates = np.array([0.0, 0.1, 0.2])
>>> growth_factors = ops.exp(growth_rates)
>>> # growth_factors: [1.0, 1.105, 1.221]