Examples of jn()


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

        fail("*** weights: Evaluation of first derivative was inaccurate");
       
      }

      sbeps=1.e-3;
      localflag = abs(0.25*(bess.jn(3,y)-2.0*bess.jn(5,y)+bess.jn(7,y))-f2) > sbeps;
      globalflag = globalflag || localflag;
      if (localflag) {
        fail("*** weights: Evaluation of second derivative was inaccurate");
       
      }
View Full Code Here

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

    // Test StepperBS
    System.out.println("Testing StepperBS");

    Bessjy bess = new Bessjy();
    for (i=0;i<nvar;i++) {
      y[i]=bess.jn(i,x1);
      yexp[i]=bess.jn(i,x2);
    }
    Output out=new Output(20);
    rhs_StepperBS d = new rhs_StepperBS();
    StepperBS s = new StepperBS();
View Full Code Here

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

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

    Bessjy bess = new Bessjy();
    for (i=0;i<nvar;i++) {
      y[i]=bess.jn(i,x1);
      yexp[i]=bess.jn(i,x2);
    }
    Output out=new Output(20);
    rhs_StepperBS d = new rhs_StepperBS();
    StepperBS s = new StepperBS();
    Odeint ode = new Odeint(y,x1,x2,atol,rtol,h1,hmin,out,d,s);
View Full Code Here

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

    x=1.0;
    h=0.1;

    Bessjy bess=new Bessjy();
    for (i=0;i<nvar;i++) {
      y[i]=bess.jn(i,x);
      yexp[i]=bess.jn(i,x+h);
    }

    rk4_derivs(x,y,dydx);
    RK4_derivs rk4_derivs = new RK4_derivs();
View Full Code Here

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

    h=0.1;

    Bessjy bess=new Bessjy();
    for (i=0;i<nvar;i++) {
      y[i]=bess.jn(i,x);
      yexp[i]=bess.jn(i,x+h);
    }

    rk4_derivs(x,y,dydx);
    RK4_derivs rk4_derivs = new RK4_derivs();
    Odeint.rk4(y,dydx,x,h,yout,rk4_derivs);
View Full Code Here

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

    // Test StepperDopr5
    System.out.println("Testing StepperDopr5");

    Bessjy bess = new Bessjy();
    for (i=0;i<nvar;i++) {
      y[i]=bess.jn(i,x1);
      yexp[i]=bess.jn(i,x2);
    }
    Output out = new Output(20);
    rhs_StepperDopr5 d = new rhs_StepperDopr5();
    StepperDopr5 s = new StepperDopr5();
View Full Code Here

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

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

    Bessjy bess = new Bessjy();
    for (i=0;i<nvar;i++) {
      y[i]=bess.jn(i,x1);
      yexp[i]=bess.jn(i,x2);
    }
    Output out = new Output(20);
    rhs_StepperDopr5 d = new rhs_StepperDopr5();
    StepperDopr5 s = new StepperDopr5();
    Odeint ode = new Odeint(y,x1,x2,atol,rtol,h1,hmin,out,d,s);
View Full Code Here

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

  }

  class  Bessjn_gauher {
    double get(int n,double x) {
      Bessjy b = new Bessjy();
      return(b.jn(n,x));
    }
  };

  class Func_gauher implements UniVarRealValueFun {
    int n;
View Full Code Here

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

    // Test StepperDopr853
    System.out.println("Testing StepperDopr853");

    Bessjy bess = new Bessjy();
    for (i=0;i<nvar;i++) {
      y[i]=bess.jn(i,x1);
      yexp[i]=bess.jn(i,x2);
    }
    Output out=new Output(20);
    rhs_StepperDopr853 d = new rhs_StepperDopr853();
    StepperDopr853 s = new StepperDopr853();
View Full Code Here

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

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

    Bessjy bess = new Bessjy();
    for (i=0;i<nvar;i++) {
      y[i]=bess.jn(i,x1);
      yexp[i]=bess.jn(i,x2);
    }
    Output out=new Output(20);
    rhs_StepperDopr853 d = new rhs_StepperDopr853();
    StepperDopr853 s = new StepperDopr853();
    Odeint ode = new Odeint(y,x1,x2,atol,rtol,h1,hmin,out,d,s);
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.