Ticket #577 (closed enhancement: fixed)

Opened 3 years ago

Last modified 2 years ago

[with patch] add MPolynomialRing.long_repr method

Reported by: malb Owned by: somebody
Priority: minor Milestone: sage-2.8.5
Component: basic arithmetic Keywords:
Cc: Author(s):
Report Upstream: Reviewer(s):
Merged in: Work issues:

Description

If a multivariate polynomial ring is structured via a block or product ordering and has lots and lots of variables printing it normally looks messy quickly. The proposed patch (attached) adds a method long_repr with provides a more structured view for those rings, e.g.

Polynomial Ring
  Base Ring : Finite Field in a of size 2^4
       Size : 52 Variables
   Block  0 : Ordering : degrevlex
              Names    : k300, k301, k302, k303, x300, x301, x302, x303, w300, w301, w302, w303, s200, s201, s202, s203
   Block  1 : Ordering : degrevlex
              Names    : k200, k201, k202, k203, x200, x201, x202, x203, w200, w201, w202, w203, s100, s101, s102, s103
   Block  2 : Ordering : degrevlex
              Names    : k100, k101, k102, k103, x100, x101, x102, x103, w100, w101, w102, w103, s000, s001, s002, s003
   Block  3 : Ordering : degrevlex
              Names    : k000, k001, k002, k003

Attachments

5853.patch Download (2.1 KB) - added by malb 3 years ago.

Change History

Changed 3 years ago by malb

Changed 3 years ago by mabshoff

  • summary changed from add MPolynomialRing.long_repr method to [with patch] add MPolynomialRing.long_repr method

Changed 3 years ago by malb

  • milestone changed from sage-2.9 to sage-2.8.4.3

Let's see if I can sneak this in 2.8.4.3

Changed 2 years ago by was

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.