exp#

rbc.stdlib.elementwise_functions.exp(x)#
Calculates an implementation-dependent approximation to the exponential function, having

domain.

[-infinity, +infinity] and codomain [+0, +infinity], for each element x_i of the input array x (e raised to the power of x_i, where e is the base of the natural logarithm).

>>> from rbc.stdlib import array_api
>>> @heavydb('double[](double[])')
... def array_api_exp(x):
...     return array_api.exp(x)
>>> array_api_exp(np.array([1.0, np.pi, np.e])).execute()
array([ 2.7182817, 23.140692 , 15.154263 ], dtype=float32)

Array-API ‘exp’ doc