#8344: Factor constant polynomials over QQbar
--------------------------------+-------------------------------------------
Reporter: boothby | Owner: AlexGhitza
Type: defect | Status: needs_info
Priority: critical | Milestone: sage-4.3.4
Component: basic arithmetic | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
--------------------------------+-------------------------------------------
Comment(by zimmerma):
Dear John,
your method seems ok to me, however I can't reproduce your first example
in Sage 4.3.3:
{{{
sage: x = polygen(QQbar)
sage: f = 3*x^2-2
sage: lc = f.leading_coefficient()
sage: Factorization([(x-r,e) for r,e in f.roots()])
(x - 0.8164965809277260?) * (x + 0.8164965809277260?)
sage: Factorization([(x-r,e) for r,e in f.roots()],unit=1)
(x - 0.8164965809277260?) * (x + 0.8164965809277260?)
sage: Factorization([(x-r,e) for r,e in f.roots()],unit=lc)
...
TypeError: Illegal initializer for algebraic number
sage: type(lc), parent(lc)
(<class 'sage.rings.qqbar.AlgebraicNumber'>, Algebraic Field)
}}}
Does it depend on another ticket?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8344#comment:9>
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.