Skip to content

xgcd incorrect for padic polynomials #13439

Open
@saraedum

Description

@saraedum

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. Or are my examples somehow incorrect?

Depends on #13630
Depends on #13619
Depends on #13620

Component: padics

Keywords: gcd

Stopgaps: #13537

Branch/Commit: u/saraedum/ticket/13439 @ fb269f6

Reviewer: David Roe

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions