#13439: padic xgcd incorrect
------------------------+---------------------------------------------------
Reporter: saraedum | Owner: roed
Type: defect | Status: new
Priority: minor | Milestone: sage-5.4
Component: padics | Keywords: gcd
Work issues: | Report Upstream: N/A
Reviewers: | Authors:
Merged in: | Dependencies:
Stopgaps: |
------------------------+---------------------------------------------------
{{{xgcd}}} is broken for padics:
{{{
sage: R.<x> = Qp(3,3)[]
sage: f = 3*x + 7
sage: g = 5*x + 9
sage: f.xgcd(f*g)[0].is_one()
True
sage: R.<x> = Qp(3)[]
sage: f = 490473657*x + 257392844/729
sage: g = 225227399/59049*x - 8669753175
sage: f.xgcd(f*g)[0].is_one()
True
}}}
The algorithm used is the standard Euclidean algorithm which is afaik not
correct for inexact fields.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13439>
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.