org.opensourcephysics.numerics.specialfunctions
Class ErrorFunction

java.lang.Object
  extended by org.opensourcephysics.numerics.specialfunctions.ErrorFunction
All Implemented Interfaces:
Function

public class ErrorFunction
extends java.lang.Object
implements Function

Computes the error function for a real argument. Can be instantiated as a Function or can be used with static methods.


Constructor Summary
ErrorFunction()
           
 
Method Summary
static double errf(double x)
          Error function.
 double evaluate(double x)
          Evaluates the error function in order to implement the Function interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorFunction

public ErrorFunction()
Method Detail

evaluate

public double evaluate(double x)
Evaluates the error function in order to implement the Function interface.

Specified by:
evaluate in interface Function
Parameters:
x -
Returns:
error function at x

errf

public static double errf(double x)
Error function.

Parameters:
x -
Returns:
value of error function at x