1 | initial version |
There seems not to be a conversion from CC
to ZZ
, but there is one from CC
to RR
and one from RR
to ZZ
, so you can do:
sage: p = poly.change_ring(RR).change_ring(ZZ) ; p
A^2 + 2*A*B + B^2 + 2
sage: p.parent()
Multivariate Polynomial Ring in A, B over Integer Ring