Opened 3 years ago

Last modified 6 days ago

#29932 new defect

Inaccurate results in padic function: _polynomial_list

Reported by: gh-n-vi Owned by:
Priority: major Milestone:
Component: padics Keywords: ntl
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

Using version 9.1 of sage, the function _polynomial_list() which is implemented in: sage/src/sage/rings/padics/padic_ZZ_pX_CR_element.pyx,
sometimes returns inaccurate results.
For example, of the first 10 powers of 5 in the following example, only 50, 55 get accurate results:

sage: T.<a> = Qp(5).extension(x^2-5)
sage: l = [T(5^i)._polynomial_list() for i in range(10)]
sage: l
[[1 + O(5^20)],
 [5 + 4*5^20 + O(5^21)],
 [5^2 + 3*5^21 + O(5^22)],
 [5^3 + 2*5^22 + O(5^23)],
 [5^4 + 5^23 + O(5^24)],
 [5^5 + O(5^25)],
 [5^6 + 4*5^25 + O(5^26)],
 [5^7 + 3*5^26 + O(5^27)],
 [5^8 + 2*5^27 + O(5^28)],
 [5^9 + 5^28 + O(5^29)]]
  • This bug was mentioned in ticket #29925 and is repeated here in detail.

Change History (8)

comment:1 Changed 3 years ago by pbruin

See #30041 for another bug in _polynomial_list().

comment:2 Changed 2 years ago by mkoeppe

Milestone: sage-9.2sage-9.3

comment:3 Changed 21 months ago by mkoeppe

Milestone: sage-9.3sage-9.4

Moving to 9.4, as 9.3 has been released.

comment:4 Changed 18 months ago by mkoeppe

Milestone: sage-9.4sage-9.5

comment:5 Changed 14 months ago by mkoeppe

Milestone: sage-9.5sage-9.6

comment:6 Changed 9 months ago by mkoeppe

Milestone: sage-9.6sage-9.7

comment:7 Changed 5 months ago by mkoeppe

Milestone: sage-9.7sage-9.8

comment:8 Changed 6 days ago by mkoeppe

Milestone: sage-9.8
Note: See TracTickets for help on using tickets.