Public Member Functions | |
| FnCollection (String xname, List< StkOp > stkops, List< Evaluator.Function > varlist) | |
| Creates a collection for the specified independent variable. | |
| double | eval (String expr) |
| Evaluates a constant expression. | |
| void | addConst (String constname, String expr) throws IllegalArgumentException |
| Adds a constant. | |
| StkVar | getStkVar (String varname) |
| Gets a stack variable. | |
| void | addConstsAndVars (String defs) throws IllegalArgumentException |
| Adds constants and dependent variables appearing in the specified string. | |
| Evaluator.Function | addVar (String varname, String expr) throws IllegalArgumentException |
| Adds a dependent variable. | |
| Evaluator.Function | getVar (String varname) |
| Gets a dependent variable. | |
| Evaluator.Function | findVar (String name_or_def) |
| Finds a dependent variable. | |
| gridripper::math::expr::FnCollection::FnCollection | ( | String | xname, | |
| List< StkOp > | stkops, | |||
| List< Evaluator.Function > | varlist | |||
| ) | [inline] |
Creates a collection for the specified independent variable.
| xname | the name of the independent variable | |
| stkops | list of constants and other stack operations | |
| varlist | list of dependent variables |
| double gridripper::math::expr::FnCollection::eval | ( | String | expr | ) | [inline] |
Evaluates a constant expression.
Dependent variables should not appear in it.
| expr | the expression |
| void gridripper::math::expr::FnCollection::addConst | ( | String | constname, | |
| String | expr | |||
| ) | throws IllegalArgumentException [inline] |
| StkVar gridripper::math::expr::FnCollection::getStkVar | ( | String | varname | ) | [inline] |
Gets a stack variable.
| varname | the name |
| void gridripper::math::expr::FnCollection::addConstsAndVars | ( | String | defs | ) | throws IllegalArgumentException [inline] |
Adds constants and dependent variables appearing in the specified string.
| defs | list of definitions, separated by semicolons |
| Evaluator.Function gridripper::math::expr::FnCollection::addVar | ( | String | varname, | |
| String | expr | |||
| ) | throws IllegalArgumentException [inline] |
Adds a dependent variable.
| varname | the name | |
| expr | the defining expression |
| Evaluator.Function gridripper::math::expr::FnCollection::getVar | ( | String | varname | ) | [inline] |
Gets a dependent variable.
| varname | the name |
| Evaluator.Function gridripper::math::expr::FnCollection::findVar | ( | String | name_or_def | ) | [inline] |
Finds a dependent variable.
The variable can optionally be created if not found.
| name_or_def | name or the definition to be use if the variable is not found |
1.5.6