Example usage for org.apache.commons.math3.analysis.integration IterativeLegendreGaussIntegrator integrate

List of usage examples for org.apache.commons.math3.analysis.integration IterativeLegendreGaussIntegrator integrate

Introduction

In this page you can find the example usage for org.apache.commons.math3.analysis.integration IterativeLegendreGaussIntegrator integrate.

Prototype

public double integrate(final int maxEval, final UnivariateFunction f, final double lower, final double upper)
        throws TooManyEvaluationsException, MaxCountExceededException, MathIllegalArgumentException,
        NullArgumentException 

Source Link

Usage

From source file:fsm.series.Series_CF.java

public double getI2(int m, int n) {

    IterativeLegendreGaussIntegrator ilg = new IterativeLegendreGaussIntegrator(64, 0.98, 5);
    return ilg.integrate(2000, this.getF2(m, n), 0, a);
}

From source file:fsm.series.Series_CF.java

@Override
public double getYmIntegral(int m) {

    IterativeLegendreGaussIntegrator ilg = new IterativeLegendreGaussIntegrator(64, 0.98, 5);
    return ilg.integrate(2000, getFunction(m), 0, a);
}

From source file:fsm.series.Series_CF.java

public double getI5(int m, int n) {

    IterativeLegendreGaussIntegrator ilg = new IterativeLegendreGaussIntegrator(64, 0.98, 5);
    return ilg.integrate(2000, this.getF5(n, m), 0, a);

}

From source file:fsm.series.Series_CF.java

public double getI4(int m, int n) {

    if (m != n) {
        return 0.0;
    }/*from ww w  .  j  a v a 2s.c om*/

    IterativeLegendreGaussIntegrator ilg = new IterativeLegendreGaussIntegrator(64, 0.98, 5);
    return ilg.integrate(2000, this.getF4(n, m), 0, a);
}

From source file:fsm.series.Series_CF.java

public double getI1(int m, int n) {

    if (m != n) {
        return 0.0;
    }/*from  www  .  jav  a 2 s.c o  m*/

    IterativeLegendreGaussIntegrator ilg = new IterativeLegendreGaussIntegrator(64, 0.98, 5);
    return ilg.integrate(2000, this.getF1(m, n), 0, a);

}

From source file:fsm.series.Series_CC.java

public double getI2(int m, int n) {

    IterativeLegendreGaussIntegrator ilg = new IterativeLegendreGaussIntegrator(gausspoints, 0.98, 5);
    return ilg.integrate(2000, this.getF2(m, n), 0, a);
}

From source file:fsm.series.Series_CC.java

@Override
public double getYmIntegral(int m) {

    IterativeLegendreGaussIntegrator ilg = new IterativeLegendreGaussIntegrator(gausspoints, 0.98, 5);
    return ilg.integrate(2000, this.getFunction(m), 0, a);
}

From source file:fsm.series.Series_CC.java

public double getI5(int m, int n) {

    IterativeLegendreGaussIntegrator ilg = new IterativeLegendreGaussIntegrator(gausspoints, 0.98, 5);
    return ilg.integrate(2000, this.getF5(n, m), 0, a);

}

From source file:fsm.series.Series_CC.java

public double getI4(int m, int n) {

    if (m != n) {
        return 0.0;
    }//from   w ww  .j a va2s  . c  o  m

    IterativeLegendreGaussIntegrator ilg = new IterativeLegendreGaussIntegrator(gausspoints, 0.98, 5);
    return ilg.integrate(2000, this.getF4(n, m), 0, a);
}

From source file:fsm.series.Series_CC.java

public double getI1(int m, int n) {

    if (m != n) {
        return 0.0;
    }/*  ww w .  j  a  v a2 s .c  om*/

    IterativeLegendreGaussIntegrator ilg = new IterativeLegendreGaussIntegrator(gausspoints, 0.98, 5);
    return ilg.integrate(2000, this.getF1(m, n), 0, a);

}