File: parts-doc.m2

package info (click to toggle)
macaulay2 1.21%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 133,096 kB
  • sloc: cpp: 110,377; ansic: 16,306; javascript: 4,193; makefile: 3,821; sh: 3,580; lisp: 764; yacc: 590; xml: 177; python: 140; perl: 114; lex: 65; awk: 3
file content (50 lines) | stat: -rw-r--r-- 1,269 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--- status: rewritten September 2018
--- author(s): Lily Silverstein

doc///
 Key
  parts
  (parts, RingElement)
 Headline
  display terms of a polynomial degree by degree
 Usage
  parts f
 Inputs
  f:RingElement
 Outputs
  :Expression
   with the terms of {\tt f} parenthesized degree by degree. The degrees are given in increasing order
 Description
  Text
   By default, {\tt Macaulay2} displays a polynomial @TO RingElement@ by
   putting its terms in decreasing order, 
   with respect to the @TO MonomialOrder@ of the ambient ring.
   On the other hand, {\tt parts} will display the terms in order of
   increasing degree, regardless of the term order of the ring. 
   Parentheses group together all terms of the same degree.
  Example
   R = QQ[x,y];
   f = (x + y + 1)^2
   parts f
   R = QQ[x,y, MonomialOrder => Lex];
   f = (x + y + 1)^2
   parts f
  Text
   The output is an @TO Expression@ of a special class, @TO Parenthesize@.
   Accessing the individual parenthesized parts of this expression is
   difficult, so for this purpose it may be better to use @TO part@.
  Example
   part(2, f)
   part(0, 1, f)
 SeeAlso
  degree
  monomials
  part
  select
  terms
  someTerms
  "graded and multigraded polynomial rings"
  "manipulating polynomials"
///