Package com.nr.fe

Examples of com.nr.fe.Epsalg


   

    // 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)));
View Full Code Here

TOP

Related Classes of com.nr.fe.Epsalg

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.