File: intersect-doc.m2

package info (click to toggle)
macaulay2 1.17.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 68,376 kB
  • sloc: cpp: 102,995; ansic: 10,040; javascript: 6,019; sh: 3,506; makefile: 3,426; lisp: 727; yacc: 590; perl: 369; xml: 177; python: 141; lex: 65; awk: 3
file content (66 lines) | stat: -rw-r--r-- 2,128 bytes parent folder | download
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
--- status: Draft
--- author(s):Giulio
--- notes: 


doc ///
Node
  Key
    intersect
  Headline
    compute an intersection
Node
  Key
    (intersect, List)
    (intersect, Sequence)
    (intersect, Ideal)
    (intersect, Module)
    [intersect, Strategy]
    [intersect, MinimalGenerators]
  Headline
    compute an intersection of ideals or modules
  Usage
    intersect(M, N, ..., P)
  Inputs
    :{List,Sequence}
      containing modules that are submodules of the same module or ideals in the same ring
    Strategy=>Thing
      specifies the algorithm
    MinimalGenerators=>Boolean
      indicates whether the output should be @TO2 {trim, "trimmed"}@
  Outputs
    :{Ideal,Module}
      the intersection of the objects given
  Description
    Text
      This function calculates the intersection of submodules of the same free module, or of ideals in the same ring.

      The following example computes the intersection of a sequence of ideals.
    Example
      R = ZZ/101[a..d];
      I = intersect(ideal(a, b), ideal(b, c), ideal(c, d), ideal(d, a))
    Text
      The following example computes the intersection of a list of modules.
    Example
      R=ZZ[x, y, z];
      M=image matrix{{3*x}, {3*x}};
      N=image matrix{{5*y}, {5*y}};
      P=image matrix{{7*z}, {7*z}};
      intersect{M, N, P}
    Text
      The command @TO "intersect"@ does not accept subrings. To intersect an ideal with a subring,
      use @TO "selectInSubring"@ along with the elimination ordering, see @TO "Eliminate"@.

      Multiple strategies are implemented via @TO2 {"Macaulay2Doc :: using hooks", "hooks"}@ and
      can be listed using the function @TO hooks@. More strategies may be added using @TO addHook@.
    Example
      hooks(intersect, Ideal, Ideal)
      hooks(intersect, Module, Module)
    Text
      By default, the strategies are attempted in the reverse order in which the were added, until one is successful.
      To run a specific strategy instead, use the optional argument @TT "Strategy"@.
    Example
      intersect(ideal(x, y), (ideal(x, y, z))^2, Strategy => Monomial)
  SeeAlso
    selectInSubring
///