Examples of jn()


Examples of com.nr.sf.Bessjy.jn()

    System.out.println("Testing Chebyshev (derivative)");
    Chebyshev cder=cheb.derivative();
    for (i=0;i<MM;i++) {
      x=-5.0+i;
      y[i]=cder.eval(x,m);
      yy[i]=0.5*(b.jn(N-1,x)-b.jn(N+1,x));
//      System.out.printf(y[i] << " %f\n", yy[i] << endl;
    }
    System.out.printf("Chebyshev (derivative): Maximum discrepancy = %f\n", maxel(vecsub(y,yy)));
    localflag = maxel(vecsub(y,yy)) > sbeps;
    globalflag = globalflag || localflag;
View Full Code Here

Examples of com.nr.sf.Bessjy.jn()

    System.out.println("Testing Chebyshev (derivative)");
    Chebyshev cder=cheb.derivative();
    for (i=0;i<MM;i++) {
      x=-5.0+i;
      y[i]=cder.eval(x,m);
      yy[i]=0.5*(b.jn(N-1,x)-b.jn(N+1,x));
//      System.out.printf(y[i] << " %f\n", yy[i] << endl;
    }
    System.out.printf("Chebyshev (derivative): Maximum discrepancy = %f\n", maxel(vecsub(y,yy)));
    localflag = maxel(vecsub(y,yy)) > sbeps;
    globalflag = globalflag || localflag;
View Full Code Here

Examples of com.nr.sf.Bessjy.jn()

  class bjn implements UniVarRealValueFun{
    public double funk(final double x) {
      int N=5;

      Bessjy b = new Bessjy();
      return(b.jn(N,x));
    }
  }
 
  class bj1 implements UniVarRealValueFun{
    public double funk(final double x) {
View Full Code Here

Examples of com.nr.sf.Bessjy.jn()

  class bj1 implements UniVarRealValueFun{
    public double funk(final double x) {
      int N=1;

      Bessjy b = new Bessjy();
      return(b.jn(N,x));
    }
  }
}
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.