Ask Your Question

Revision history [back]

How to divide two polynomials in GF(2)[x] and get result in same type as of operands

Suppose i have two polynomials $f,g$ from GF(2)[x] which is having type class 'sage.rings.polynomial.polynomial_gf2x.Polynomial_GF2X'.

When i find $f/g$ (if $f$ is divisible by $g$ in GF(2)[x]) , it is coming as the type class 'sage.rings.fraction_field_element.FractionFieldElement_1poly_field'

How to convert $f/g$ to the same type class as of $f$ and $g$?