nerdamer.erf(x: Expression): Expression
Computes the error function erf(x).
- erf(+∞) = 1, erf(−∞) = −1
- For numeric inputs, returns a high-precision decimal approximation.
- For symbolic inputs, returns an unevaluated erf(x) node.
seehttps://en.wikipedia.org/wiki/Error_function
Parameters
| Name | Type | Description |
|---|
x | Expression | The input expression. |
Examples
erf(Expression.create(0)).text() // "0"
erf(Expression.create('x')).text() // "erf(x)"