Now that we can use tikz in a PG problem, it's nice to plot a function using pgfplots ad the \addplot macro. However there are some incompatibilities between how MathObjects prints a formula and what the syntax for an argument to \addplot must be. One of these incompatibilities is that \addplot does not understand brackets as a grouping symbol. So if you have like:
$f = Formula("1/(x(x+1))");
Later if you are in tikz code and use
\addplot ... {$f};
It becomes
\addplot ... {1/[x*(x+1)]};
and the latex image compilation fails.
Is there a way to force brackets (and braces?) to be parentheses in MathObjects string output?
I have hit a few other incompatibilities and I resort to manually re-writing the formula in the tikz code. But most of these time, this issue has been this bracket issue.