Examples of jnu()


Examples of com.nr.sf.Bessel.jnu()

      for (j=0;j<N;j++) {
        xx=0.2*(j+1);
        if (i == 0) {
          zz1[j]=bjy.j0(xx);
          zz2[j]=bess.jnu(nnu,xx);
        } else if (i == 1) {
          zz1[j]=bjy.j1(xx);
          zz2[j]=bess.jnu(nnu,xx);
        } else {
          zz1[j]=bjy.jn(i,xx);
View Full Code Here

Examples of com.nr.sf.Bessel.jnu()

        if (i == 0) {
          zz1[j]=bjy.j0(xx);
          zz2[j]=bess.jnu(nnu,xx);
        } else if (i == 1) {
          zz1[j]=bjy.j1(xx);
          zz2[j]=bess.jnu(nnu,xx);
        } else {
          zz1[j]=bjy.jn(i,xx);
          zz2[j]=bess.jnu(nnu,xx);
        }
      }
View Full Code Here

Examples of com.nr.sf.Bessel.jnu()

        } else if (i == 1) {
          zz1[j]=bjy.j1(xx);
          zz2[j]=bess.jnu(nnu,xx);
        } else {
          zz1[j]=bjy.jn(i,xx);
          zz2[j]=bess.jnu(nnu,xx);
        }
      }
      localflag = maxel(vecsub(zz1,zz2)) > sbeps;
      globalflag = globalflag || localflag;
      if (localflag) {
View Full Code Here

Examples of com.nr.sf.Bessel.jnu()

    // Test some non-integer values of nu
    // Test Bessel (besseljy)
    System.out.println("Testing Bessel (besseljy),jnu");
    for (i=0;i<N;i++)
      zz[i]=bess.jnu(nu[i],x[i]);
    System.out.printf("Bessel (besseljy),jnu: Maximum discrepancy = %f\n", maxel(vecsub(zz,uu1)));
    localflag = maxel(vecsub(zz,uu1)) > sbeps;
    globalflag = globalflag || localflag;
    if (localflag) {
      fail("*** Bessel (besselij),jnu: Incorrect function values, non-integer order");
View Full Code Here

Examples of com.nr.sf.Bessel.jnu()

  {
    if (x == 0.0)
      return 0.0;
    else {
      Bessel bess = new Bessel();
      return x*bess.jnu(0.0,x)/(1.0+x*x);
    }
  }

  int main_levex(){
    int nterm=12;
View Full Code Here

Examples of com.nr.sf.Bessel.jnu()

  public double funk(double x) {
    if (x == 0.0)
      return 0.0;
    else {
      Bessel bess = new Bessel();
      return x*bess.jnu(0.0,x)/(1.0+x*x);
    }
  }
 
  public static void main(String[] args) {
    Levin_Ex le = new Levin_Ex();
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.