Ticket #7101 (closed defect: duplicate)
Inconsistency in polynomial ring creation.
| Reported by: | hivert | Owned by: | tbd |
|---|---|---|---|
| Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |
| Component: | algebra | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | Reviewers: | ||
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
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
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
Change History
Note: See
TracTickets for help on using
tickets.

This is fixed by the patches at #7007 and #5639.