public class ErrorFunction
extends java.lang.Object
Constructor and Description |
---|
ErrorFunction() |
Modifier and Type | Method and Description |
---|---|
static double |
erf(double x)
evaluates the error function for a real argumant using the MacClaurin
series representation.
|
static double |
gammp(double a,
double x)
Returns the (lower) incomplete gamma function P(a, x).
|
static void |
main(java.lang.String[] args)
evaluates the error function over the interval [-4.0, 4.0] and outputs
the results to stderr
|
public static double gammp(double a, double x) throws ErrorFunctionException
a
- exponentx
- argumentErrorFunctionException
public static double erf(double x) throws ErrorFunctionException
x
- upper limit on the integralErrorFunctionException
public static void main(java.lang.String[] args)
args
- command line args