Wed 2017-09-27 17:33:47 UTC, Madhurima Mukhopadhyay:
> The following code is giving me no results. I cannot understand the
> reason behind this
> p = 297079
> K = GF(p)
> a1, a2, a3, h0, h1 = var('a1 a2 a3 h0 h1')
> RHS = (x - a1)*(x - a2)*(x - a3)*(x^2 + h1*x + h0)*(x^4 + 45948*x^3 +
> 55848*x^2 + 84717*x + 225935)
> Coeff = RHS.coefficients(x, sparse=False)
> solve([Coeff[7] == 0, Coeff[6] == 0, Coeff[5] == 0, Coeff[4] == 0], h0,
h1)
It would help if you could state the problem you are trying to solve.
You defined p to be 297079; then K to be the field with p elements;
then RHS to be an expression in a1, a2, a3, h0, h1, x; probably you
meant RHS to have coefficients in K.
The coefficient of each x^j is then an expression involving
a1, a2, a3, h0, h1. Apparently you are looking for h0 and h1 which
would make the coefficient of x^j vanish for j = 4, 5, 6, 7.
If that is so, are you looking for h0 and h1... as elements of K?
as polynomials in a1, a2, a3? as rational functions in a1, a2, a3?
as other types of functions in a1, a2, a3?
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.