erf

Function erf 

Source
pub fn erf(arg: &Expression) -> Expression
Expand description

Error function erf(x)

§Mathematical Definition

erf(x) = (2/√π) ∫₀ˣ e^(-t²) dt

§Arguments

  • arg - Expression to compute error function of

§Returns

Error function expression

§Examples

use mathhook_core::functions::special::error_functions::erf;
use mathhook_core::expr;

let result = erf(&expr!(0));
assert_eq!(result, expr!(0));