exp#

static vectorious.exp(x)#

Returns e^x of each element of x, where x is the argument, and e is Euler’s constant (2.718…), the base of the natural logarithm.

Arguments:
Returns:

NDArray

Examples:

import { exp } from 'vectorious/core/exp';

exp([1, 2, 3]); // => array([2.7182817459106445, 7.389056205749512, 20.08553695678711])