combine.mathml¶
Helper functions for evaluation of MathML expressions.
Using sympy to evaluate the expressions.
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: