Hi sage developers, I need to play with polynomials on various kind of coefficients. So I tried the following:
---------------------------------------------------------------------- | Sage Version 4.1.1, Release Date: 2009-08-14 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- Loading Sage library. Current Mercurial branch is: combinat sage: R=QQ[x] sage: R(1+x) x + 1 sage: R=ZZ[x] sage: R(1+x) x + 1 sage: R=RealField(200)[x] sage: R(1+x) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) [...] TypeError: x is not a variable of Univariate Polynomial Ring in x over Real Field with 200 bits of precision sage: As mvngu pointed out on irc: the following works sage: R.<x> = RealField(20)["x"] sage: R(1 + x) 1.0000*x + 1.0000 But this is not very beautiful and worse it is very inconsistent... At least the error message should be more understandable... What should we do about it ? Cheers, Florent --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---