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

public class ErrorFunction extends 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 Details

    • ErrorFunction

      public ErrorFunction()
  • Method Details

    • 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