math.exp() function

math.exp() returns e**x, the base-e exponential of x.

Function type signature
(x: float) => float

For more information, see Function type signatures.

Parameters

x

(Required) Value to operate on.

Examples

Return the base-e exponential of a value

import "math"

math.exp(x: 21.0)// 1.3188157344832146e+09

Use math.exp in map

import "sampledata"
import "math"

sampledata.float()
    |> map(fn: (r) => ({r with _value: math.exp(x: r._value)}))

View example input and output


Was this page helpful?

Thank you for your feedback!