Project

General

Profile

Feature #318

implement "indent" for modules

Added by Anna Maria Bigatti about 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Incomplete function
Target version:
Start date:
20 Feb 2013
Due date:
% Done:

100%

Estimated time:
Spent time:

Description

implement indent for module as it is done for ideal

History

#1 Updated by Anna Maria Bigatti about 11 years ago

implemented: the decision is to use the matrix representation by rows (as highlighted by the name)

/**/  indent(M);
SubmoduleRows(F, matrix([
  [0, x, -z],
  [1, 0, -x]
]))

I was undecided between rows and cols, but the vertical alignment is immediately broken by any non trivial case, whereas rows still have a chance to be readable.
/**/  Use R ::= QQ[x,y,z];
/**/  indent(syz([x^2-y-1, y^3-z, x^2-y, y^3-z]));
SubmoduleRows(F, matrix([
  [y^3 -z, 0, 0, -x^2 +y +1],
  [0, 1, 0, -1],
  [x^2 -y, 0, -x^2 +y +1, 0],
  [0, 0, y^3 -z, -x^2 +y]
]))

Note: syz ;-)

#2 Updated by Anna Maria Bigatti over 10 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF