Opened 9 years ago

Last modified 6 years ago

#14485 closed defect

Creation of a polynomial over QQbar — at Version 1

Reported by: tmonteil Owned by: malb
Priority: minor Milestone: sage-7.2
Component: commutative algebra Keywords: QQbar, polynomial
Cc: burcin Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by tmonteil)

Here is the issue: there is no problem buildind a polynomial over AA:

sage: R = AA[x]                       
sage: P = R(x^6+x^5+x^4-x^3+x^2-x+2/5)

But the same operation does not work on QQbar:

sage: S = QQbar[x]
sage: Q = S(x^6+x^5+x^4-x^3+x^2-x+2/5)
Traceback (most recent call last)
NotImplementedError: symbol

Hovewer, this workaround works:

sage: Q = P.change_ring(QQbar)

Moreover the following works :

sage: S.<x> = PolynomialRing(QQbar,'x')
sage: Q = S(x^6+x^5+x^4-x^3+x^2-x+2/5)
sage: S == QQbar[x]

Weird isn't it ?

Change History (1)

comment:1 Changed 9 years ago by tmonteil

  • Description modified (diff)
Note: See TracTickets for help on using tickets.