I am just learning Sage. I tried to define a polynomial and then find the polynomial remainder upon division by the cyclotomic_polynomial(18), which is 1-x^3+x^6. This is easily accomplished in Mathematica using the PolynomialRemainder function. But I could not find the analog of that function in the Sage documentation.
I expected it to be a method of the Polynomial class. I suspect my difficulty lies in converting a symbolic expression to a polynomial. In fact, if I knew how to do that properly I shouldn't even need PolynomialRemainder. The plan is to create the ring Q(z) where z is a primitive 18th root of 1, and then enter some expression such as (z^5-1/z^5 )(z - 1/z) (but much longer) and see it expressed as a polynomial of degree 5 in z. In Mathematica I just multiplied by a sufficient power of z and then used PolynomialRemainder (I'm going to set the result to zero so multiplying by a power of z is fine). What is the right way to do this in Sage? -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
