![]() |
User Guide
|
Represent a term in differential equation and it's "current" solution. More...
Represent a term in differential equation and it's "current" solution.
When differential equation is parsed, each variable/term is represented by this class. As expressions are formed, like a+b, the solution gets updated
Definition at line 26 of file diffeq_context.hpp.
#include <diffeq_context.hpp>
Public Member Functions | |
| Term ()=default | |
| Term (const std::string &expr, const std::string &state) | |
| Term (std::string expr, std::string deriv, std::string a, std::string b) | |
| bool | deriv_nonzero () const |
| helper routines used in parser More... | |
| bool | a_nonzero () const |
| bool | b_nonzero () const |
| void | print () const |
Public Attributes | |
| std::string | expr |
| expression being solved More... | |
| std::string | deriv = "0.0" |
| derivative of the expression More... | |
| std::string | a = "0.0" |
| std::string | b = "0.0" |
|
default |
| nmodl::parser::diffeq::Term::Term | ( | const std::string & | expr, |
| const std::string & | state | ||
| ) |
Definition at line 18 of file diffeq_context.cpp.
|
inline |
Definition at line 41 of file diffeq_context.hpp.
|
inline |
Definition at line 53 of file diffeq_context.hpp.
|
inline |
Definition at line 57 of file diffeq_context.hpp.
|
inline |
helper routines used in parser
Definition at line 49 of file diffeq_context.hpp.
| void nmodl::parser::diffeq::Term::print | ( | ) | const |
Definition at line 29 of file diffeq_context.cpp.
| std::string nmodl::parser::diffeq::Term::a = "0.0" |
Definition at line 34 of file diffeq_context.hpp.
| std::string nmodl::parser::diffeq::Term::b = "0.0" |
Definition at line 35 of file diffeq_context.hpp.
| std::string nmodl::parser::diffeq::Term::deriv = "0.0" |
derivative of the expression
Definition at line 31 of file diffeq_context.hpp.
| std::string nmodl::parser::diffeq::Term::expr |
expression being solved
Definition at line 28 of file diffeq_context.hpp.