Module mathml::petri_net::recognizers
source · Expand description
This module contains functions for predicate testing of MathML elements, as well as extracting semantically-meaningful objects from MathML expressions.
Functions§
- Get polarity from a Mo element.
- Get variable corresponding to specie.
- Predicate testing whether a MathML operator (Mo) is a subtraction or addition.
- Predicate testing whether a MathML elm could be interpreted as a Var. TODO: This currently permits Mn -> MathML numerical literals. Perhaps useful to represent constant coefficients? But should those be Vars?
- Check if fraction is a derivative of a single-variable function expressed in Leibniz notation, and if so, return a derivative operator and the identifier of the function.