Examples of j0()


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

    else System.out.println("Passed\n");
  }
  class Bessj0_qgaus implements UniVarRealValueFun{
    public double funk(double x) {
      Bessjy b = new Bessjy();
      return(b.j0(x));
    }
  };

  class Bessj1_qgaus  implements UniVarRealValueFun{
    public double funk(double x) {
View Full Code Here

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

    else System.out.println("Passed\n");
  }
  class Func_Amoeba implements RealValueFun {
    public double funk(final double[] x) {
    Bessjy b = new Bessjy();
    return(b.j0(x[0])+pow(x[1],2.0));
    }
  }
  class Bessj1_Amoeba implements UniVarRealValueFun {
    public double funk(final double x) {
    Bessjy b = new Bessjy();
View Full Code Here

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

    return Bessj0_Powell(x);
  }
 
  double Bessj0_Powell(double[] x) {
    Bessjy b = new Bessjy();
    return(b.j0(sqrt(SQR(x[0])+SQR(x[1])+SQR(x[2]))));
  }
}
View Full Code Here

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

    else System.out.println("Passed\n");
  }
 
  public double funk(final double x) {
    Bessjy b = new Bessjy();
    return(b.j0(x));
  }

}
View Full Code Here

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

    else System.out.println("Passed\n");
  }
 
  public double funk(final double[] x) {
    Bessjy b = new Bessjy();
    return(b.j0(sqrt(SQR(x[0])+SQR(x[1])+SQR(x[2]))));
  }

}
View Full Code Here

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

  };

  class bj0_dfridr implements UniVarRealValueFun{
    public double funk(final double x) {
    Bessjy b = new Bessjy();
    return(b.j0(x));
  }
  }
  class bj1_dfridr implements UniVarRealValueFun{
  public double funk(final double x) {
    Bessjy b = new Bessjy();
View Full Code Here

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

    else System.out.println("Passed\n");
  }
 
  public double funk(final double[] x) {
    Bessjy b=new Bessjy();
    return(b.j0(sqrt(SQR(x[0])+SQR(x[1])+SQR(x[2]))));
  }
}
View Full Code Here

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

  public double funk(final double x) {
    return Bessj0_Golden(x);
  }
  double Bessj0_Golden(final double x) {
    Bessjy b = new Bessjy();;
    return(b.j0(x));
  }

  double Bessj1_Golden(final double x) {
    Bessjy b = new Bessjy();
    return(b.j1(x));
View Full Code Here

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

    Chebyshev cheb1 = new Chebyshev(bj1,aa,bb,NN);
    Chebyshev cint=cheb1.integral();
    for (i=0;i<MM;i++) {
      x=-5.0+i;
      y[i]=cint.eval(x,m);
      yy[i]=b.j0(aa)-b.j0(x);
//    System.out.printf(y[i] << " %f\n", yy[i] << endl;
    }
    System.out.printf("Chebyshev (integral): Maximum discrepancy = %f\n", maxel(vecsub(y,yy)));
    sbeps=2.0e-6;
    localflag = maxel(vecsub(y,yy)) > sbeps;
View Full Code Here

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

    Chebyshev cheb1 = new Chebyshev(bj1,aa,bb,NN);
    Chebyshev cint=cheb1.integral();
    for (i=0;i<MM;i++) {
      x=-5.0+i;
      y[i]=cint.eval(x,m);
      yy[i]=b.j0(aa)-b.j0(x);
//    System.out.printf(y[i] << " %f\n", yy[i] << endl;
    }
    System.out.printf("Chebyshev (integral): Maximum discrepancy = %f\n", maxel(vecsub(y,yy)));
    sbeps=2.0e-6;
    localflag = maxel(vecsub(y,yy)) > sbeps;
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.