I'm using SBML which is an XML format for capturing numerical simulations. This uses MathML to capture equations that relate the amounts of the different things in the simulation. When I write the equations down by hand, I add some brackets that are not strictly needed, but which make the equations easier to read. For example, I may have an equation that by hand I'd write as:
z = (ax + by) + (cx + dy)
When this goes into MathML, these brackets are stripped out, and once I pretty-print the MathML, it comes out as:
z = ax + by + cx + dy
This makes me sad. Is there a way to capture these (redundant) brackets in the MathML expression?