quadrature
Class Gaus8

java.lang.Object
  |
  +--quadrature.Gaus8

public class Gaus8
extends java.lang.Object

This class contains a Java translation of a public domain FORTRAN routine, dgaus8, written by R. E. Jones that numerically integrates real functions of one variable over finite intervals. The translation was performed by Steve Verrill in February of 2002.


Constructor Summary
Gaus8()
           
 
Method Summary
static double gaus8(Gaus8_fcn integclass, double a, double b, double[] err, int[] ierr)
          This method integrates real functions of one variable over finite intervals using an adaptive 8-point Legendre-Gauss algorithm.
static double sign(double a, double b)
           This method implements the FORTRAN sign (not sin) function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gaus8

public Gaus8()
Method Detail

gaus8

public static double gaus8(Gaus8_fcn integclass,
                           double a,
                           double b,
                           double[] err,
                           int[] ierr)
This method integrates real functions of one variable over finite intervals using an adaptive 8-point Legendre-Gauss algorithm. Gaus8 is intended primarily for high accuracy integration or integration of smooth functions.

This method is a Java translation of the FORTRAN routine gaus8 written by R. E. Jones. The version translated is part of the SLATEC library of numerical routines, and can be downloaded at www.netlib.org.

The maximum number of significant digits obtainable in the integral is 16. (This is based on the translator's reading of the dgaus8.f documentation and the translator's understanding of Java numerics. Since the translator is a mathematical statistician rather than a numerical analyst, the 16 figure might not be quite correct.)

The translation was performed by Steve Verrill during February of 2002.

Parameters:
integclass - A class that defines a method, f_to_integrate, that returns a value that is to be integrated. The class must implement the Gaus8_fcn interface (see the definition in Gaus8_fcn.java). See Gaus8Test.java for an example of such a class. f_to_integrate must have one double valued argument.
a - The lower limit of the integral.
b - The upper limit of the integral (may be less than a).

sign

public static double sign(double a,
                          double b)

This method implements the FORTRAN sign (not sin) function. See the code for details. Created by Steve Verrill, March 1997.

Parameters:
a - a
b - b