I've been playing with the output mode switches, trying to find some combination that displays the way I like, but cannot quite get the format I want. Consider the expression "sigma0 := a1 - b1/r^2 - ((3 + nu1)/8) * rho1 * omega^2 * r^2;" Is there any way to have that display in that form, as here entered?

With "on div;off exp;", it comes close, giving, with "off nat", "- 1/8*((nu1 + 3)*omega**2*r**4*rho1 + 8*b1 - 8*a1*r**2)*r**(-2)". So, either, with "off exp;" there is this "- 1/8*r^(-2)" factor that is not distributed across the terms in parenthesis, or, with "on exp;", the "(nu1 + 3)" factor gets multiplied out.

Hmm - I suppose that I want the "outer" "- 1/8*r^(-2)" factor distributed across the parenthetic terms, but not the "inner" "omega^2*r^4*rho1" term. But then, it is really this divisor term, this "- 1/8*r^(-2)", that is at issue here. When setting "on div;", I might have expected this divisor term to simply be applied to each numerator term individually. But no - this divisor term is simply "wrapped around" the parenthetic numerator, in this case. Is that a bug with the "div" switch function?

For instance, if all the original terms are made positive, so that there is no "-" outside the parenthesis, then, setting "on div;", the "1/8" factor is taken inside the parenthesis, but not the "r^(-2)" factor. That suggests to me that the "div" switch is, at least, a little confused by the minus sign outside the parenthesis. And, it may be that the "div" switch is also a little confused by that minus sign in the "r^(-2)" exponent. If the "-2" exponent is changed to "+2", then the "1/8" factor is again pulled outside the parenthesis. Like, it works sometimes one way, but, in other circumstances, another way. Is the "div" switch being confused by the parenthesis in the numerator?

And here, the "on gcd;" switch does not help.

So, I am either reporting a bug in the "div" switch, or I am requesting something similar to, but different from, the "div" switch functionality. Or, am I missing some proper combination of output switches? Any thoughts?

Thanks

James