Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Substitution in polynomial defined over finite field

I am new to SAGE. While attempting to substitute finite field element into polynomial over finite field instead of variable i get positive characteristic not allowed in symbolic computations error. How am i supposed to substitute in this case? Sage notebook 8.5. Not working code:

x,y=var('x'),var('y')
fx=PolynomialRing(GF(32),x)(x^2+x)
fx.substitute(x==1)

Thanks in advanse fot answer.

Substitution in polynomial defined over finite field

I am new to SAGE. Sage. While attempting to substitute finite field element into polynomial over finite field field, instead of variable i get positive characteristic not allowed in symbolic computations error. error. How am i supposed to substitute in this case? Sage notebook 8.5. Not working code:

x,y=var('x'),var('y')
fx=PolynomialRing(GF(32),x)(x^2+x)
fx.substitute(x==1)
x, y = var('x'), var('y')
fx = PolynomialRing(GF(32), x)(x^2 + x)
fx.substitute(x == 1)

Thanks in advanse fot advance for answer.