Your problem is too many quotes! You are giving strings to F(). I would say F=FractionField(PolynomialRing(QQ,'A')) A-F.gen()
and then 1/A F(1/A) are all fine. John On 13/02/2008, Simon King <[EMAIL PROTECTED]> wrote: > > Dear Sage team, > > i tried the following: > sage: F=FractionField(PolynomialRing(QQ,'A')) > sage: A=F('A') > sage: 1/A > 1/A > sage: F('1/A') > 0 // not nice, but acceptable > sage: R=PolynomialRing(FractionField(PolynomialRing(QQ,'A')),'x') > sage: A=R('A') > sage: 1/A > Exception exceptions.RuntimeError: 'maximum recursion depth exceeded > in cmp' in 'sage.libs.pari.gen.PariInstance.get_var' ignored > > Then i had to interrupt with Ctrl-C > > Is it possible to work in a polynomial ring over a fraction field, and > if "yes", how? > > Yours > Simon > > > > -- John Cremona --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---