Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistency in polynomial ring creation. #7101

Closed
hivert opened this issue Oct 3, 2009 · 2 comments
Closed

Inconsistency in polynomial ring creation. #7101

hivert opened this issue Oct 3, 2009 · 2 comments

Comments

@hivert
Copy link

hivert commented Oct 3, 2009

  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

Component: algebra

Issue created by migration from https://trac.sagemath.org/ticket/7101

@hivert hivert added this to the sage-4.2 milestone Oct 3, 2009
@mwhansen
Copy link
Contributor

mwhansen commented Oct 4, 2009

comment:1

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

@mwhansen
Copy link
Contributor

mwhansen commented Oct 4, 2009

comment:2

Err, it's a duplicate of #5755 which has been fixed.

@mwhansen mwhansen closed this as completed Oct 4, 2009
@sagetrac-mvngu sagetrac-mvngu mannequin removed this from the sage-4.2 milestone Oct 14, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants