The order argument to the printers is definitely under-documented.
This has been an issue for some time.
Aaron Meurer
On Tue, Feb 13, 2024 at 10:41 AM Thomas Ligon wrote:
>
> Thanks! This does exaclty what I wanted.
> Now, for the question, should I be embarassed for not finding it myself. This
Thanks! This does exaclty what I wanted.
Now, for the question, should I be embarassed for not finding it myself.
This is in fact documented in
https://docs.sympy.org/latest/modules/printing.html
It looks like all of my searching was for reversing the order of an
expression, which is hard, but re
The order in printing can be controlled with the order flag to the
printer. Using latex(expr, order='rev-lex') will cause polynomials to
print in reverse lexicographic order, which is the order you want.
It's not a good idea to use evaluate=False to try to control printing
behavior, as this can br
I am trying to reverse the order of an expression before printing it for my
documentation, and I want ascending order, but SymPy always gives me
descending order. All of the expressions are polynomials, specifically
partial sums of power series. Since, according to Internet searches, there
is