Function reference · Special functions

erf

Returns the error function.

It tends to 1 and -1 at the infinities. Call evaluate for a decimal value.

Notation

erf(args)

Write it in an expression: nerdamer('erf(0)'), or in the Playground.

nerdamer.erf

nerdamer.erf(...args: [x]): Expression

A method on the default import. Arguments can be strings, as in Notation.

import { erf }

import { erf } from 'nerdamer/special';
erf(x: Expression): Expression

Import only this function, from nerdamer/special.

Examples

Zero.

erf(0)
// → 0
Open in Playground

A decimal value.

evaluate(erf(1))
// → 0.84270079294971486934
Open in Playground

The limit at infinity.

erf(Infinity)
// → 1
Open in Playground

Its derivative.

diff(erf(x),x)
// → 2*(pi^(1/2)*e^x^2)^-1
Open in Playground

← Back to Function reference