Opened 8 years ago

Last modified 3 years ago

#15421 new enhancement

Creating p-Adic polynomials from strings

Reported by: afiori Owned by:
Priority: minor Milestone: sage-6.4
Component: padics Keywords: padicIMA
Cc: roed Merged in:
Authors: Andrew Fiori Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

It would be nice to be able to create polynomials over the p-adics by just copying the output from printing them.

sage: R = Qp(3,10)['x']
sage: P = R("1+3^-1+O(3^9)+(1+3+3^2)*x")
sage: P
(1 + 3 + 3^2 + O(3^10))*x + (3^-1 + 1 + O(3^9))

The attached patch lets this happen

Attachments (1)

PadicPolyCasting.patch (1.4 KB) - added by afiori 8 years ago.
Add a doctest

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by afiori

Add a doctest

comment:1 Changed 8 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:2 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:3 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4

comment:4 Changed 3 years ago by roed

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