#7859: bug in QQbar (easy to fix!)
--------------------------------+-------------------------------------------
Reporter: was | Owner: AlexGhitza
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.3.2
Component: basic arithmetic | Keywords:
Author: HÃ¥kan Granath | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
--------------------------------+-------------------------------------------
Comment(by zimmerma):
This issue seems to be fixed already in 4.3.1:
{{{
----------------------------------------------------------------------
| Sage Version 4.3.1, Release Date: 2010-01-20 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: R.<x> = AA[]
sage: v1 = QQbar.polynomial_root(AA.common_polynomial(x^4 + 3*x^2 + 1),\
....: CIF(RIF(-RR(2.7018838812806391e-55), RR(2.5616917931009833e-55)),\
....: RIF(RR(1.6180339887498947), RR(1.6180339887498949))))
sage:
sage: v2 = (2/3*v1^3 + 2/3*v1^2 + 4/3*v1 + 1).norm()
sage: sqrt(v2 - 1)
0
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7859#comment:7>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.