1 | initial version |
It's even easier than in Frédéric's answer:
sage: C = var('C')
sage: g=25*C^5 - 325*C^4 + 16276*C^3 - 228488*C^2 - 5940688
sage: type(g)
<type 'sage.symbolic.expression.Expression'>
sage: g.polynomial(QQ)
25*C^5 - 325*C^4 + 16276*C^3 - 228488*C^2 - 5940688
sage: type(_)
<type 'sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint'>