CPP   51

Euler.h

Guest on 8th July 2022 08:52:22 AM

  1. /*
  2.  
  3.   Routines for the Euler ODE Integration
  4.  
  5. */
  6.  
  7. class Euler:public DEF
  8. {
  9.  
  10. public:
  11.  
  12. double euler2a(int neqn, double t0, double tf, double u[], double u0[],
  13.                int nsteps);
  14.    
  15. double euler2b(int neqn, double t0, double tf, double u[], double u0[],
  16.                int nsteps, double abserr, double relerr);
  17.  
  18. double sseuler(int neqn, double t0, double u0[], double h, double u[],
  19.                double e[]);
  20. };

Raw Paste


Login or Register to edit or fork this paste. It's free.