コード例 #1
0
 public SDE(double u00, double u01, Function3 f1, Function3 f2, double x0, double X, double h, int Nmax, double eps)
 {
     this.u00        = u00;
     this.u01        = u01;
     this.f1         = f1;
     this.f2         = f2;
     this.x0         = x0;
     this.X          = X;
     this.Nmax       = Nmax;
     this.eps        = eps;
     v               = new double[Nmax, 2];
     v2              = new double[Nmax, 2];
     s               = new double[Nmax, 2];
     x               = new double[Nmax];
     doubleCount     = new int[Nmax];
     halfCount       = new int[Nmax];
     halfCount[0]    = 0;
     doubleCount[0]  = 0;
     this.h          = new double[Nmax];
     this.h[0]       = h;
     iterationsCount = 0;
 }
コード例 #2
0
 public RK4System(double u00, double u01, Function3 f1, Function3 f2, double x0, double X, double h, int Nmax, double eps)
     : base(u00, u01, f1, f2, x0, X, h, Nmax, eps)
 {
     p = 4;
 }