### Re: combining contexts (piecewise functions and fractions)

by Alex Jordan -But back to those three examples. If I am in a situation where I need to use Formula("$a/$b x"), then along with turning off the reduceConstants flag, I also use the Fraction context to make $frac=Fraction($a,$b), and then make Formula("$frac x"). This will leave each of the three cases that you gave displaying as you want.

Just to be clear, all of this is about how Formulas will be displayed. If you want simplified expressions from students, then other techniques are needed (like bizarroArithmetic.pl).