public final class Erf extends Object
\[ \operatorname{erf}(z) = \frac{2}{\sqrt\pi}\int_0^z e^{-t^2}\,dt \]
public static double value(double x)
The returned value is always between -1 and 1 (inclusive).
The appropriate extreme is returned when erf(x)
is
indistinguishable from either -1 or 1 at double
precision.
Special cases:
> 6
, then the result is 1.
< 6
, then the result is -1.
x
- the value.Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.