Internally, Poly will expand it. It would be possible to make a printer 
that prints the expression in factored form, however. But why do you want 
to do that? What is the goal/problem?

/c

On Saturday, November 20, 2021 at 1:59:08 AM UTC-6 distan...@gmail.com 
wrote:

> Poly((x-1)**2, x) returns Poly(x**2-2x+1, x).
> Is it possbile to retain the expression as it is, i.e. (x-1)**2 ?
>

-- 
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/ca14df36-66cb-43ea-9c22-27758da08771n%40googlegroups.com.

Reply via email to