ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 22 Jun 2016 08:10:18 +0200Evaluating discriminant of a polynomial in Z_n[x]/<x^r-1>https://ask.sagemath.org/question/33879/evaluating-discriminant-of-a-polynomial-in-z_nxxr-1/Consider the following code
Zn=Zmod(n)
R = PolynomialRing(Zn,'x')
F = R.quotient((x**r)-1)
y=F((x+1))
f=F(y**n)
Clearly **f** will be a polynomial in xbar , I want to consider this polynomial as a polynomial in $ \mathbb{Z}[x] $ and evaluate its discriminant.
I tried **"f.polynomial()"** but it is not working. Any suggestions ? vishbWed, 22 Jun 2016 08:10:18 +0200https://ask.sagemath.org/question/33879/