Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <vector>
- #include "parser.h"
- #define N 2
- class TPBVPShooting
- {
- private:
- std::vector<double*> shootingPosition;
- string firstEquation;
- string secondEquation;
- double c0,c1;
- double initialValue;
- double a,b;
- double targetY;
- double stepSize; //for runge-kutta
- double epsilon;
- int maxShooting;
- int pointNum;
- Parser prs;
- public:
- TPBVPShooting(string firstEquation_,string secondEquation_,double c0_,double c1_, double initialValue_,double a, double b,double targetY,double stepSize,double epsilon,int maxShooting );
- ~TPBVPShooting(void);
- std::string stringify(double x);
- void replaceAll(std::string& str, const std::string& from, const std::string& to);
- double solve();
- void drawGraph();
- double* shooting(double y0[]);
- double f(double x, double y0[], int i);
- void runge4(double x,double y0[],double step);
- };
Advertisement
Add Comment
Please, Sign In to add comment