Module mathml::expression

source ·

Enums§

  • Intermediate data structure to support the generation of graphs of mathematical expressions

Functions§

  • Check if the current term’s operators are all add or subtract.
  • Check if the current term’s operators are all multiply or divide.
  • The graph generation process adds additional parentheses to preserve operation order. This function checks for the existence of those redundant parentheses.
  • Generates a JSON representation of DOT graphs for each MathExpressionTree of the code implementation.
  • Return the node index if it exists; if not, add a new node and return the node index.
  • Check if the current term’s operators contain add or minus and without the unary operator.
  • Check if the current term’s operators contain multiple divisions, and the denominators contain add and subtract and without unary operators
  • Check if the current term’s operators contain multiply.
  • Remove redundant parentheses.
  • Switch the summation operator and the subtraction operator
  • Switch the multiplication operator and the division operator

Type Aliases§

  • Struct for representing mathematical expressions in order to align with source code.