mathml¶
Evaluation of formulas and MathML expressions.
A Data of type FUNCTION is a formula of other data, see sbmlsim.data.
The formula is parsed into the abstract syntax tree of libsedml, which
implements the L3 formula syntax of SBML, and evaluated on the arrays of the
variables with sympy.
parse_astnode
¶
Parse ASTNode.
An AST node in libSBML is a recursive tree structure; each node has a type, a pointer to a value, and a list of children nodes. Each ASTNode node may have none, one, two, or more children depending on its type. There are node types to represent numbers (with subtypes to distinguish integer, real, and rational numbers), names (e.g., constants or variables), simple mathematical operators, logical or relational operators and functions.
see also: http://sbml.org/Software/libSBML/docs/python-api/libsedml-math.html
:param mathml: :return: