On Jun 26, 11:29 am, Christophe <[email protected]> wrote: > Hello, > here is a simple code : > ================ > x = sympy.Symbol('x') > a = sympy.Symbol('a') > f = 'x**3+4*x+1/x+a' > g = sympy.integrate(f,x) > ================ > The output put is "a*x + log(x) + 2*x**2 + x**4/4" . I think that it > would be better to have the following output "a*x + 2*x**2 + x**4/4 + > log(x)" . All polynomial expressions (regarding to letters) must be at > the beginning.
As far as I know the ordering in sympy depends only on hashes (and thus depends on the platform). I agree with you that is should be at least configurable to sort it having a nicer output. If there is not yet an issue for this, it would be great if you create one. :) Vinzent --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sympy?hl=en -~----------~----~----~----~------~----~------~--~---
