etaa=eta;
thetaa=theta;
if (eta <= 15.0) {
a=-4.5;
b=5.0;
Trapzd s = new Trapzd(this,a,b);
for (int i=1;i<=NMAX;i++) {
sum=s.next();
if (i > 3)
if (abs(sum-olds) <= EPS*abs(olds))
return sum;
olds=sum;
}
}
else {
a=0.0;
b=eta;
aa=eta;
bb=eta+60.0;
hmax=4.3;
DErule s = new DErule(this,a,b,hmax);
DErule ss = new DErule(this,aa,bb,hmax);
for (int i=1;i<=NMAX;i++) {
sum=s.next()+ss.next();
if (i > 3)
if (abs(sum-olds) <= EPS*abs(olds))
return sum;
olds=sum;
}