Function spinoso_math::erf

source ·
pub fn erf(value: f64) -> Result<f64, NotImplementedError>
Expand description

Calculates the error function of the given value.

Domain: (-INFINITY, INFINITY)

Codomain: (-1, 1)

§Examples

use spinoso_math as math;
assert_eq!(math::erf(0.0), Ok(0.0));

§Errors

Because spinoso-math was built with the full feature, this function will always succeed and return the error function of the given value.