nerdamer.exp(x: ExpressionInput): Expression
Computes the exponential function e^x.
-
`exp(0) = 1`
-
`exp(+∞) = +∞`
,
`exp(−∞) = 0`
- For complex inputs
`a + bi`
where both parts are numeric, applies Euler's formula:
`exp(a + bi) = exp(a) · (cos(b) + i·sin(b))`
.
- For symbolic inputs, returns
`e^(x)`
.
Returns
Expression — The value of e raised to the power `x`.
Examples
exp(0).text() // "1"
exp(1).text() // "2.71828182845904..."
exp('x').text() // "e^(x)"