Ask Your Question

Akanzar's profile - activity

2014-11-27 15:19:04 -0500 commented answer sage automatically expanding polynomial

But P[2] (to get the coefficient before X²) doesn't work anymore with var.

2014-11-27 15:04:34 -0500 received badge  Editor (source)
2014-11-27 14:42:13 -0500 received badge  Autobiographer
2014-11-27 14:38:27 -0500 received badge  Organizer (source)
2014-11-27 14:24:13 -0500 asked a question sage automatically expanding polynomial
 R.<X>=PolynomialRing(ZZ,'X')
 X=R.gen()  
 P=(X+1)²+1
 show(P)

The result is X²+2X+2 while i would like sage to show (X+1)²+1.

How can i do that ?