public final class Erfc extends Object
\[ \begin{aligned} \operatorname{erfc}(z) &= 1 - \operatorname{erf}(z) \\ &= \frac{2}{\sqrt\pi}\int_z^{\infty} e^{-t^2}\,dt \end{aligned} \]
| Modifier and Type | Method and Description |
|---|---|
static double |
value(double x)
Returns the complementary error function.
|
public static double value(double x)
The value returned is always between 0 and 2 (inclusive).
The appropriate extreme is returned when erfc(x) is
indistinguishable from either 0 or 2 at double precision.
Special cases:
> 28, then the result is 0.
< 6, then the result is 2.
x - Value.Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.