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
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