Examples of erfc()


Examples of com.nr.sf.Erf.erfc()

    System.out.println("Testing Erf");

    Erf e = new Erf();
    for (i=0;i<N;i++) {
      zz1[i]=e.erf(xx[i]);
      zz2[i]=e.erfc(xx[i]);
    }

    sbeps=5.e-15;
    System.out.printf("Erf, erf(): Maximum discrepancy = %f\n", maxel(vecsub(zz1,yy1)));
    localflag = maxel(vecsub(zz1,yy1)) > sbeps;
View Full Code Here

Examples of com.nr.sf.Erf.erfc()

    System.out.println("Testing erfcc");

    Erf e = new Erf();
    for (i=0;i<N;i++) {
      yy[i]=Erf.erfcc(x[i]);
      zz[i]=e.erfc(x[i]);
    }
    System.out.printf("erfcc: Maximum discrepancy = %f\n", maxel(vecsub(zz,yy)));
    localflag = maxel(vecsub(zz,yy)) > sbeps;
    globalflag = globalflag || localflag;
    if (localflag) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.