how to check if a polynom is a square
I'ld like to put a condition in a programm that looks like:
"if Q is a square, then ..."
Q being a polynom (in GF(p)).
How can I do that ?
I'ld like to put a condition in a programm that looks like:
"if Q is a square, then ..."
Q being a polynom (in GF(p)).
How can I do that ?
First of all, there is a function to check if a polynomial is a square
sage: x = polygen(GF(7))
sage: p = 2*x^2 + 6*x + 1
sage: p.is_square()
True
Then you need to learn about conditional statements in Python (if
/elif
/else
): https://docs.python.org/3/tutorial/co...
Asked: 2020-04-17 16:32:38 -0600
Seen: 45 times
Last updated: Apr 18 '20
obtaining all numerical roots of a function in an interval
How do i solve a 2 variable polynomial over 1 variable
is_polynomial with symbolic coefficients: bug ?
Reliable integer root function?
Complex roots of non-squarefree real polynomial
Is there a simple way to deal with computing real nth roots for n a natural number?
"partial_fraction_decomposition" with possibly "complex roots", again