Opened 14 months ago

Last modified 3 months ago

#26406 new enhancement

p-adic __getitem__ should ressemble behaviour of number fields

Reported by: saraedum Owned by:
Priority: minor Milestone: sage-8.4
Component: padics Keywords: padicBordeaux
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: #14825 Stopgaps:

Description (last modified by saraedum)

For a number field element, x[i] returns the coefficient of x when written as a polynomial in the generator of the number field.

For p-adics, it currently returns the coefficient in the π-adic expansion.

A deprecation warning has been introduced in #14825 to change the behaviour of p-adic elements.

See also #26408, #13300.

Change History (3)

comment:1 Changed 14 months ago by saraedum

  • Description modified (diff)

comment:2 Changed 14 months ago by saraedum

  • Description modified (diff)

comment:3 Changed 3 months ago by roed

  • Keywords padicBordeaux added
Note: See TracTickets for help on using tickets.