Class Functions.ErfTable

java.lang.Object
org.bzdev.math.Functions.ErfTable
Enclosing class:
Functions

public static class Functions.ErfTable extends Object
This class does a high-precision computation of erfc, which fills in a table used to create a spline to allow us to interpolate over a range of values where accuracy is a problem: values high enough that erf(x) is too close to 1.0 for erfc(x) = 1 - erf(x) to be an accurate approximation, but too low for the asymptotic expansion to be accurate to one part in 10 to the 10th. Because the values change rapidly, we fit the spline to the natural logarithm of the value of the erfc function and then use Math.exp to restore it.
  • Method Details

    • main

      public static void main(String[] argv) throws IOException
      Dump an internal table to System.out in binary form. This program is used to create a JAR-file resource when the BZdev class library is built. There is little point in using it for any other purpose. The class name for this program is org.bzdev.math.Functions$ErfTable (note the use of a '$' in the name).
      Parameters:
      argv - command-line arguments (ignored)
      Throws:
      IOException - an IO error occurred