Thank you very much! :) środa, 10 lutego 2021 o 20:22:09 UTC+1 [email protected] napisał(a):
> `print(expand((x**2+1)*(x-1)))` > > On Wednesday, February 10, 2021 at 1:20:38 PM UTC-6 > [email protected] wrote: > >> Thank you. It works in this example. But if I'd like to do this: >> >> print((x**2+1)*(x-1)) >> >> It prints me string without compute it. I'd like to have : >> >> x**3-x**2+x-1 >> >> Is it possible? >> >> Thanks Mike >> >> środa, 10 lutego 2021 o 19:59:55 UTC+1 [email protected] napisał(a): >> >>> wrap your expression in a `print()` statement: `print(1+x+x**2+x**3)`. >>> On Wednesday, February 10, 2021 at 9:43:44 AM UTC-6 >>> [email protected] wrote: >>> >>>> Hi. >>>> >>>> I'd like to generate code of simplified formula. I.E: >>>> >>>> When I pass: 1+x+x**2+x**3 >>>> I'd like to have: x**3+x**2+x+1 >>>> >>>> Is it possible to achieve it? >>>> >>>> Thanks >>>> Mike >>>> >>> -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/sympy/fc4ec4c6-097e-40d1-9c2c-6ee0132ffb42n%40googlegroups.com.
