I think mathematicians prefer the order of symbols preserved. On Thursday, April 21, 2022 at 7:54:20 PM UTC+1 asme...@gmail.com wrote:
> On Thu, Apr 21, 2022 at 12:16 PM Oscar Benjamin > <oscar.j....@gmail.com> wrote: > > > > On Thu, 21 Apr 2022 at 18:53, Aaron Meurer <asme...@gmail.com> wrote: > > > > > > If you want the expression to print in the same way that it was > > > originally entered, then it needs to keep track of that information > > > when it is created. That's not something that currently happens. > > > > > > If you just want the printers to have more options in how they sort > > > things, that is technically already possible, although it's not > > > particularly straightforward and not very well documented. > > > > It should be easier to do each of these things. At the moment you can > > create an Add(y, x, evaluate=False) and the printers do have an > > "order" setting (for init_printing) but there isn't a value for the > > order parameter that just prints the terms in the exact order that > > they appear in the Add. > > > > This is a very commonly requested option on StackOverflow etc. It > > would be good to fix it so that the printers can just print in args > > order. > > The order flag needs to be documented much better. Also I think it > would be useful if you could just pass a sort key function directly to > the printer, with some examples of how to do that. > > Aaron Meurer > > > > > -- > > Oscar > > > > -- > > 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 sympy+un...@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/CAHVvXxQU5MSP45UFe1ioztrW6%3DJF1TPEdVXC3o9qOROMFw9_cw%40mail.gmail.com > . > -- 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 sympy+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/9866dbc5-c7df-411b-9023-ef15fd9d6e42n%40googlegroups.com.