Hi Björn,
Thank you for your answer. I like your work-around because it improves the
latex output of my original formulas.
But I'm afraid it doesn't work for my problem (the terms calculated by
solve). It is not just a problem of printing in the right order. If you
look at the variable test (see code below), the term has to be manipulated,
by moving the *-1 from the numerator to the denominator
*.*
test = -(Rzy + 1)/(Ryz*Rzy - 1)
In [22]: test
Out[22]: (-\RZY - 1)/(\RYZ*\RZY - 1)
In [23]: latex(test)
Out[23]: '\\frac{- \\RZY - 1}{\\RYZ \\RZY - 1}'
In [24]: print(MyLatexPrinter().doprint(test))
\frac{-1 - \RZY}{\RYZ \RZY - 1}
In my opinion, a manipulated output function won't solve this problem.
I also need the manipulated term for further calculation, so I don't see a
need for a pure output function.
Unfortunately I don't have the skills to write such a function. I even
don't understand your example.
Alex
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/6e0f111d-71fc-4aee-80d0-28ad5458e237%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.