First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 1 year ago

Max Alekseyev gravatar image

You did not define x and thus it is considered symbolic rather than a variable over GF(p). A simple way to fix this is to change R = PolynomialRing(GF(p),'x') with R.<x> = PolynomialRing(GF(p),'x'). Then you'll get roots in GF(p).

click to hide/show revision 2
No.2 Revision

You did not define x and thus it is considered a symbolic variable rather than a polynomial variable over GF(p). GF(p). A simple way to fix this is to change R = PolynomialRing(GF(p),'x') with into R.<x> = PolynomialRing(GF(p),'x'). Then you'll get roots in GF(p).

click to hide/show revision 3
No.3 Revision

You did not define x and thus it is considered a symbolic variable rather than a polynomial variable over GF(p). A simple way to fix this is to change R = PolynomialRing(GF(p),'x') into R.<x> = PolynomialRing(GF(p),'x')PolynomialRing(GF(p)). Then you'll get roots in GF(p).