303132333435363738394041424344
// Test Eulsum System.out.println("Testing Eulsum"); for (i=0;i<N;i++) { Eulsum sum = new Eulsum(M,eps); x=0.1*(i+1); term=1.0; while (!sum.cnvgd) { val=sum.next(term); term *= (-x); } y[i]=val; yy[i]=1.0/(1.0+x); }