This is a base class for Expressions and Conditionals which provides the basic interface for parsing, yielding of python functions, C equivalents, name substitution
Methods
| __init__(rhs) | |
| rhs_as_python_func([namespace]) | Returns a python callable which evaluates the expression in |
| rhs_has_missing_functions() | returns True if at least 1 function on the RHS is not in the math |
| rhs_name_transform_inplace(name_map) | Replace atoms on the RHS with values in the name_map |
Attributes
| rhs | |
| rhs_atoms | Returns an iterator over all the variable names and mathematical |
| rhs_funcs | |
| rhs_missing_functions | yield names of functions in the RHS which are not in the math |
| rhs_names |
Returns a python callable which evaluates the expression in namespace and returns the result
returns True if at least 1 function on the RHS is not in the math namespace
Replace atoms on the RHS with values in the name_map
Returns an iterator over all the variable names and mathematical functions on the RHS function. This does not include defined mathematical symbols such as pi and e, but does include functions such as sin and log
yield names of functions in the RHS which are not in the math namespace