Решение систем нелинейных уравнений 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 607B

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. class solver_diff_eqn
  8. {
  9. public:
  10. solver_diff_eqn(sys_osn_dan &, double);
  11. ~solver_diff_eqn();
  12. const state_type &get_coord() { return coordinate; }
  13. bool closeso;
  14. private:
  15. sys_osn_dan *sod;
  16. state_type x, coordinate, c1_, c_diff, max_x;
  17. std::vector<func_t> func;
  18. boost::numeric::odeint::runge_kutta4< state_type > rk;
  19. double dt, N, m_pos;
  20. state_type::iterator m_diff;
  21. int n_svob;
  22. void *shared_object;
  23. bool not_comp_;
  24. };
  25. #endif