// Test Epsalg
System.out.println("Testing Epsalg");
for (i=0;i<N;i++) {
Epsalg sum = new Epsalg(M,eps);
x=0.1*(i+1);
partialsum=0.0;
k=0;
while (!sum.cnvgd) {
partialsum += pow(x,k++);
val=sum.next(partialsum);
}
y[i]=val;
yy[i]=1.0/(1.0-x);
}
System.out.printf("Epsalg: Maximum discrepancy = %f\n", maxel(vecsub(y,yy)));