At the moment i have a polynomial (of a galois field) in function of x. But i want to "evaluate" it in x^3.
Any ideas on how to do it?
import galois
GF = galois.GF(31)
f = galois.Poly([1, 0, 0, 15], field=GF);
>> x^3 + 15
So now f is in function of x: f(x) But i want to have f(x^3)
I am the author of the
galoislibrary. Convertingf(x)tog(x) = f(x^3)is equivalent to multiplying the degrees off(x)with non-zero coefficients by 3. Ingalois, this is done like this.EDIT: As of v0.0.31, polynomial composition is supported. You can now evaluate a polynomial
f(x)at a second polynomialg(x).