Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Polynomial evaluation over finite fields

Hello, how do I make Sagemath understand that it should evaluate polynomials in a finite field?

Currently, this is how I'm declaring my polynomial ring.

R.<x>=GF(5)[]
f=x^2
f(5)
>>> 25

I want to make Sagemath understand that whenever it sees a variable x, it should treat the polynomial as one being declared over GF(5). How do I make Sagamath output f(5)=0 instead?

Polynomial evaluation over finite fields

Hello, how do I make Sagemath understand that it should evaluate polynomials in a finite field?

Currently, this is how I'm declaring my polynomial ring.

R.<x>=GF(5)[]
f=x^2
f(5)
>>> 25

Am I not declaring my polynomial ring properly?

I want to make Sagemath understand that whenever it sees a variable x, it should treat the polynomial as one being declared over GF(5). How do I make Sagamath output f(5)=0 instead?