[sage-support] equation vs. equality

2010-01-28 Thread zieglerk
Hi, My problem is, how to transform a polynomial, say f(x)=x^2+1 into the corresponding equation f(x)==0? For example, I start with R = PolynomialRing(ZZ,x) f = R.random_element(degree = 3) Then f == 0 returns false. And that's a good thing, of course. But now I want to solve f == 0 mod 7, t

Re: [sage-support] equation vs. equality

2010-01-28 Thread Mike Hansen
Hello, On Thu, Jan 28, 2010 at 2:26 AM, zieglerk wrote: > My problem is, how to transform a polynomial, say f(x)=x^2+1 into the > corresponding equation f(x)==0? > > For example, I start with > > R = PolynomialRing(ZZ,x) > f = R.random_element(degree = 3) You could convert to the SymbolicRing SR