public class org.apache.commons.math.analysis.integration.TrapezoidIntegrator extends org.apache.commons.math.analysis.integration.BaseAbstractUnivariateIntegrator
{
public static final int TRAPEZOID_MAX_ITERATIONS_COUNT;
private double s;
public void <init>(double, double, int, int) throws org.apache.commons.math.exception.NotStrictlyPositiveException, org.apache.commons.math.exception.NumberIsTooSmallException, org.apache.commons.math.exception.NumberIsTooLargeException
{
org.apache.commons.math.analysis.integration.TrapezoidIntegrator v;
java.lang.Integer v, v;
org.apache.commons.math.exception.NumberIsTooLargeException v;
int v, v;
double v, v;
v := @this: org.apache.commons.math.analysis.integration.TrapezoidIntegrator;
v := @parameter: double;
v := @parameter: double;
v := @parameter: int;
v := @parameter: int;
specialinvoke v.<org.apache.commons.math.analysis.integration.BaseAbstractUnivariateIntegrator: void <init>(double,double,int,int)>(v, v, v, v);
if v <= 64 goto label;
v = new org.apache.commons.math.exception.NumberIsTooLargeException;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(64);
specialinvoke v.<org.apache.commons.math.exception.NumberIsTooLargeException: void <init>(java.lang.Number,java.lang.Number,boolean)>(v, v, 0);
throw v;
label:
return;
}
public void <init>(int, int) throws org.apache.commons.math.exception.NotStrictlyPositiveException, org.apache.commons.math.exception.NumberIsTooSmallException, org.apache.commons.math.exception.NumberIsTooLargeException
{
int v, v;
org.apache.commons.math.analysis.integration.TrapezoidIntegrator v;
java.lang.Integer v, v;
org.apache.commons.math.exception.NumberIsTooLargeException v;
v := @this: org.apache.commons.math.analysis.integration.TrapezoidIntegrator;
v := @parameter: int;
v := @parameter: int;
specialinvoke v.<org.apache.commons.math.analysis.integration.BaseAbstractUnivariateIntegrator: void <init>(int,int)>(v, v);
if v <= 64 goto label;
v = new org.apache.commons.math.exception.NumberIsTooLargeException;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(64);
specialinvoke v.<org.apache.commons.math.exception.NumberIsTooLargeException: void <init>(java.lang.Number,java.lang.Number,boolean)>(v, v, 0);
throw v;
label:
return;
}
public void <init>()
{
org.apache.commons.math.analysis.integration.TrapezoidIntegrator v;
v := @this: org.apache.commons.math.analysis.integration.TrapezoidIntegrator;
specialinvoke v.<org.apache.commons.math.analysis.integration.BaseAbstractUnivariateIntegrator: void <init>(int,int)>(3, 64);
return;
}
double stage(org.apache.commons.math.analysis.integration.BaseAbstractUnivariateIntegrator, int) throws org.apache.commons.math.exception.TooManyEvaluationsException
{
long v, v;
byte v;
org.apache.commons.math.analysis.integration.BaseAbstractUnivariateIntegrator v;
int v, v;
double v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v;
org.apache.commons.math.analysis.integration.TrapezoidIntegrator v;
v := @this: org.apache.commons.math.analysis.integration.TrapezoidIntegrator;
v := @parameter: org.apache.commons.math.analysis.integration.BaseAbstractUnivariateIntegrator;
v := @parameter: int;
if v != 0 goto label;
v = virtualinvoke v.<org.apache.commons.math.analysis.integration.BaseAbstractUnivariateIntegrator: double getMax()>();
v = virtualinvoke v.<org.apache.commons.math.analysis.integration.BaseAbstractUnivariateIntegrator: double getMin()>();
v = v - v;
v = 0.5 * v;
v = virtualinvoke v.<org.apache.commons.math.analysis.integration.BaseAbstractUnivariateIntegrator: double computeObjectiveValue(double)>(v);
v = virtualinvoke v.<org.apache.commons.math.analysis.integration.BaseAbstractUnivariateIntegrator: double computeObjectiveValue(double)>(v);
v = v + v;
v = v * v;
v.<org.apache.commons.math.analysis.integration.TrapezoidIntegrator: double s> = v;
v = v.<org.apache.commons.math.analysis.integration.TrapezoidIntegrator: double s>;
return v;
label:
v = v - 1;
v = 1L << v;
v = 0.0;
v = virtualinvoke v.<org.apache.commons.math.analysis.integration.BaseAbstractUnivariateIntegrator: double getMax()>();
v = virtualinvoke v.<org.apache.commons.math.analysis.integration.BaseAbstractUnivariateIntegrator: double getMin()>();
v = v - v;
v = v / v;
v = 0.5 * v;
v = v + v;
v = 0L;
label:
v = v cmp v;
if v >= 0 goto label;
v = virtualinvoke v.<org.apache.commons.math.analysis.integration.BaseAbstractUnivariateIntegrator: double computeObjectiveValue(double)>(v);
v = v + v;
v = v + v;
v = v + 1L;
goto label;
label:
v = v.<org.apache.commons.math.analysis.integration.TrapezoidIntegrator: double s>;
v = v * v;
v = v + v;
v = 0.5 * v;
v.<org.apache.commons.math.analysis.integration.TrapezoidIntegrator: double s> = v;
v = v.<org.apache.commons.math.analysis.integration.TrapezoidIntegrator: double s>;
return v;
}
protected double doIntegrate() throws org.apache.commons.math.exception.MathIllegalArgumentException, org.apache.commons.math.exception.TooManyEvaluationsException, org.apache.commons.math.exception.MaxCountExceededException
{
byte v, v;
int v, v;
double v, v, v, v, v, v, v, v, v, v, v;
org.apache.commons.math.util.Incrementor v, v, v;
org.apache.commons.math.analysis.integration.TrapezoidIntegrator v;
v := @this: org.apache.commons.math.analysis.integration.TrapezoidIntegrator;
v = virtualinvoke v.<org.apache.commons.math.analysis.integration.TrapezoidIntegrator: double stage(org.apache.commons.math.analysis.integration.BaseAbstractUnivariateIntegrator,int)>(v, 0);
v = v.<org.apache.commons.math.analysis.integration.TrapezoidIntegrator: org.apache.commons.math.util.Incrementor iterations>;
virtualinvoke v.<org.apache.commons.math.util.Incrementor: void incrementCount()>();
label:
v = v.<org.apache.commons.math.analysis.integration.TrapezoidIntegrator: org.apache.commons.math.util.Incrementor iterations>;
v = virtualinvoke v.<org.apache.commons.math.util.Incrementor: int getCount()>();
v = virtualinvoke v.<org.apache.commons.math.analysis.integration.TrapezoidIntegrator: double stage(org.apache.commons.math.analysis.integration.BaseAbstractUnivariateIntegrator,int)>(v, v);
v = virtualinvoke v.<org.apache.commons.math.analysis.integration.TrapezoidIntegrator: int getMinimalIterationCount()>();
if v < v goto label;
v = v - v;
v = staticinvoke <org.apache.commons.math.util.FastMath: double abs(double)>(v);
v = virtualinvoke v.<org.apache.commons.math.analysis.integration.TrapezoidIntegrator: double getRelativeAccuracy()>();
v = staticinvoke <org.apache.commons.math.util.FastMath: double abs(double)>(v);
v = staticinvoke <org.apache.commons.math.util.FastMath: double abs(double)>(v);
v = v + v;
v = v * v;
v = v * 0.5;
v = v cmpg v;
if v <= 0 goto label;
v = virtualinvoke v.<org.apache.commons.math.analysis.integration.TrapezoidIntegrator: double getAbsoluteAccuracy()>();
v = v cmpg v;
if v > 0 goto label;
label:
return v;
label:
v = v;
v = v.<org.apache.commons.math.analysis.integration.TrapezoidIntegrator: org.apache.commons.math.util.Incrementor iterations>;
virtualinvoke v.<org.apache.commons.math.util.Incrementor: void incrementCount()>();
goto label;
}
}