Constructors

public double Integration()

public double Integration(IntegralFunction intFunc)

public double Integration(IntegralFunction intFunc, double lowerLimit, double upperLimit)

Set the function to be integrated

public void setIntegrationFunction(IntegralFunction intFunc)

Set the limits

public void setLimits(double lowerLimit, double upperLimit)

public void setLowerLimit(double lowerLimit)

public void setUpperLimit(double upperLimit)

GaussLegendre Quadrature

public double gaussQuad(int nPoints)

public static double gaussQuad(IntegralFunction intFunc, double lowerLimit, double upperLimit, int nPoints)

public static void gaussQuadCoeff(double[] gaussQuadDist, double[] gaussQuadWeight, int nPoints)

Trapezoidal Rule

public double trapezium(int nIntervals)

public static double trapezium(IntegralFunction intFunc, double lowerLimit, double upperLimit, int nIntervals)

public double trapezium(double accuracy, int maxIntervals)

public static double trapezium(IntegralFunction intFunc, double lowerLimit, double upperLimit, double accuracy, int maxIntervals)

public double getTrapeziumAccuracy()

public static double getTrapAccuracy()

public int getTrapeziumIntervals()

public static int getTrapIntervals()

Backward Rectangular Rule

public double backward(int nIntervals)

public static double backward(IntegralFunction intFunc, double lowerLimit, double upperLimit, int nIntervals)

Forward Rectangular Rule

public double forward( int nIntervals)

public static double forward(IntegralFunction intFunc, double lowerLimit, double upperLimit, int nIntervals)
