Compute the exponential of every element using a selectable variant.
Numeric.math.exp(value, method)Applies an exponential variant across nested inputs.
- Parameters:
value: Scalar, vector, or matrix input valuesmethod: Exponential variant to apply to each element
- Returns: Exponentials matching the input nesting shape
- NumPy: Covers
np.exp,np.exp2,np.expm1through a single Numerix method.
import Numeric from '@neabyte/numerix'
const value = Numeric.math.exp(1)
console.log(value)
// 2.718281828459045import Numeric from '@neabyte/numerix'
const values = Numeric.math.exp([0, 1])
console.log(values)
// [1,2.718281828459045]import Numeric from '@neabyte/numerix'
const values = Numeric.math.exp([0, 1, 2], '2')
console.log(values)
// [1,2,4]import Numeric from '@neabyte/numerix'
const value = Numeric.math.exp(1, 'm1')
console.log(value)
// 1.7182818284590453