[sage-support] Re: code to find roots no longer works

2008-04-07 Thread John P. Burkett
Dear Mike, Thank you very much for your explanation and solution. The amended code now works perfectly. You made my day! Best regards, John Mike Hansen wrote: > Hi, > > The issue is that .roots() now returns tuples with the root and its > multiplicity. You can see this if you look at v. You

[sage-support] Re: code to find roots no longer works

2008-04-07 Thread Mike Hansen
Hi, The issue is that .roots() now returns tuples with the root and its multiplicity. You can see this if you look at v. You need to select the 0th entry of the tuple to raise to a power. sage: RDF = RealDoubleField() sage: R. = PolynomialRing(RDF) sage: # Let y be x^(1/9). sage: f = y + RDF(2