File: monomials-doc.m2

package info (click to toggle)
macaulay2 1.25.05%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 172,152 kB
  • sloc: cpp: 107,824; ansic: 16,193; javascript: 4,189; makefile: 3,899; lisp: 702; yacc: 604; sh: 476; xml: 177; perl: 114; lex: 65; python: 33
file content (44 lines) | stat: -rw-r--r-- 1,479 bytes parent folder | download | duplicates (2)
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
--- status: TODO
--- author(s): 
--- notes: 

document { 
     Key => {monomials,(monomials,RingElement),(monomials,Matrix)},
     Headline => "matrix of monomials in a ring element or matrix",
     Usage => "monomials f",
     Inputs => {
	  "f" => {"either a ", TO "Matrix", " or a ", TO "RingElement"}
	  },
     Outputs => {
	  Matrix => {"a one row matrix in the same ring with all of the monomials that
	       appear in ", TT "f"}
	  },
     "Each monomial only appears once, and the monomials are sorted in what order?",
     EXAMPLE {
	  "R = ZZ[a..d,x,y];",
	  "m = matrix{{a*x^2+b*x*y+c*y^2, a*x^3+b*x^2*y+c*x*y^2+d*y^3+a*x^2}}",
	  "monomials m"
	  },
     "If the monomials in only some of the variables are desired, use the optional
     argument ", TO [monomials,Variables], ".",
     EXAMPLE {
	  "monomials(m, Variables=>{x,y})"
	  },
     SeeAlso => {coefficients},
     Subnodes => { TO [monomials, Variables] },
     }
document { 
     Key => [monomials, Variables],
     Headline => "specify variables",
     Usage => "monomials(m,Variables=>x)",
     Inputs => {
	  "x" => {"either a list or sequence of ring variables, 
	       a list or sequence of integers denoting indices of
	       ring variables, or a single ring element or integer index.
	       The default value is: all of the variables"}
	  },
     Consequences => {
	  {"Each variable not in the set of variables x is considered a coefficient"}
	  },     
     SeeAlso => {coefficients}
     }