Решение систем нелинейных уравнений https://www.mapleprimes.com/users/one%20man/posts?page=1
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

solver.h 571B

12345678910111213141516171819202122232425262728
  1. #ifndef SOLVER_H
  2. #define SOLVER_H
  3. #include <boost/numeric/odeint/stepper/runge_kutta4.hpp>
  4. #include <dlfcn.h>
  5. #include "virteqn.h"
  6. #include "sysosndan.h"
  7. #include <functional>
  8. class solver_diff_eqn
  9. {
  10. public:
  11. solver_diff_eqn(sys_osn_dan &, double);
  12. ~solver_diff_eqn();
  13. const state_type &get_coord() { return coordinate; }
  14. bool closeso;
  15. private:
  16. sys_osn_dan *sod;
  17. state_type x, coordinate;
  18. std::vector<func_t> func;
  19. boost::numeric::odeint::runge_kutta4< state_type > rk;
  20. double dt, N;
  21. int n_svob;
  22. void *shared_object;
  23. bool not_comp_;
  24. };
  25. #endif