next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: peek'(ZZ,Thing)

peek'(ZZ,Thing) -- examine contents of an object

Synopsis

Description

i1 : s = factor 112

      4
o1 = 2 7

o1 : Expression of class Product
i2 : peek s

              4
o2 = Product{2 , 7}
i3 : peek'_2 s

o3 = Product{Power{2, 4}, Power{7, 1}}

Some types of things have the notion of depth modified slightly to make the entire structure visible at depth 1, as in the following example, which also shows how to use wrap with the output from peek.

i4 : wrap_70 peek help resolution
--loading the Macaulay2 documentation from /builddir/build/BUILD/Macaulay2-1.5-r15955/M2/Macaulay2/packages/Macaulay2Doc/
--warning: symbol "hilbertBasis" in FourTiTwo.Dictionary is shadowed by a symbol in Polyhedra.Dictionary
--  use the synonym FourTiTwo$hilbertBasis
--warning: symbol "rays" in FourTiTwo.Dictionary is shadowed by a symbol in Polyhedra.Dictionary
--  use the synonym FourTiTwo$rays
--warning: symbol "generalEquations" in PHCpack#"private dictionary" is shadowed by a symbol in NAGtypes.Dictionary
--  no synonym is available
--warning: symbol "addSlackVariables" in PHCpack#"private dictionary" is shadowed by a symbol in NAGtypes.Dictionary
--  no synonym is available
--warning: symbol "tDegree" in NumericalAlgebraicGeometry#"private dictionary" is shadowed by a symbol in PHCpack.Dictionary
--  use the synonym NumericalAlgebraicGeometry$tDegree
--warning: symbol "gamma" in NumericalAlgebraicGeometry#"private dictionary" is shadowed by a symbol in PHCpack.Dictionary
--  use the synonym NumericalAlgebraicGeometry$gamma
--warning: symbol "tDegree" in NumericalAlgebraicGeometry.Dictionary is shadowed by a symbol in PHCpack.Dictionary
--  use the synonym NumericalAlgebraicGeometry$tDegree
--warning: symbol "gamma" in NumericalAlgebraicGeometry.Dictionary is shadowed by a symbol in PHCpack.Dictionary
--  use the synonym NumericalAlgebraicGeometry$gamma
--warning: symbol "tDegree" in NumericalAlgebraicGeometry#"private dictionary" is shadowed by a symbol in PHCpack.Dictionary
--  use one of the synonyms NAG$tDegree, NumericalAlgebraicGeometry$tDegree
--warning: symbol "gamma" in NumericalAlgebraicGeometry#"private dictionary" is shadowed by a symbol in PHCpack.Dictionary
--  use one of the synonyms NAG$gamma, NumericalAlgebraicGeometry$gamma
--warning: symbol "tDegree" in NumericalAlgebraicGeometry.Dictionary is shadowed by a symbol in PHCpack.Dictionary
--  use one of the synonyms NAG$tDegree, NumericalAlgebraicGeometry$tDegree
--warning: symbol "gamma" in NumericalAlgebraicGeometry.Dictionary is shadowed by a symbol in PHCpack.Dictionary
--  use one of the synonyms NAG$gamma, NumericalAlgebraicGeometry$gamma
--warning: symbol "vertices" in SimplicialComplexes.Dictionary is shadowed by a symbol in Graphs.Dictionary
--  use the synonym SimplicialComplexes$vertices
--warning: symbol "Certification" in Core.Dictionary is shadowed by a symbol in RandomObjects#"private dictionary"
--  use the synonym Core$Certification
--warning: symbol "Certification" in Core.Dictionary is shadowed by a symbol in RandomObjects.Dictionary
--  use the synonym Core$Certification
--warning: symbol "nextPrime" in RandomSpaceCurves.Dictionary is shadowed by a symbol in RandomPlaneCurves.Dictionary
--  use the synonym RandomSpaceCurves$nextPrime
--warning: symbol "PushForward" in PackageDictionary is shadowed by a symbol in Schubert2#"private dictionary"
--  use the synonym Package$PushForward
--warning: symbol "PushForward" in PackageDictionary is shadowed by a symbol in Schubert2.Dictionary
--  use the synonym Package$PushForward

o4 = DIV{HEADER1{"resolution", " -- ", "projective resolution"},
     DIV1{HEADER2{"Synopsis"}, UL{LI{DIV1{TO2{Macaulay2Doc :: using
     functions with optional inputs, "Optional inputs"}, ":",
     UL{LI{SPAN{TO2{Macaulay2Doc :: resolution(..., DegreeLimit => ...),
     "DegreeLimit => ..."}, ", ",
     LATER{{*Function[/builddir/build/BUILD/Macaulay2-1.5-r15955/M2/
     Macaulay2/m2/document.m2:953:32-953:60]*}}}}, LI{SPAN{TO2{Macaulay2Doc
     :: resolution(..., HardDegreeLimit => ...), "HardDegreeLimit => ..."},
     ", ", LATER{{*Function[/builddir/build/BUILD/Macaulay2-1.5-r15955/M2/
     Macaulay2/m2/document.m2:953:32-953:60]*}}}}, LI{SPAN{TO2{Macaulay2Doc
     :: resolution(..., LengthLimit => ...), "LengthLimit => ..."}, ", ",
     LATER{{*Function[/builddir/build/BUILD/Macaulay2-1.5-r15955/M2/
     Macaulay2/m2/document.m2:953:32-953:60]*}}}}, LI{SPAN{TO2{Macaulay2Doc
     :: resolution(..., PairLimit => ...), "PairLimit => ..."}, ", ",
     LATER{{*Function[/builddir/build/BUILD/Macaulay2-1.5-r15955/M2/
     Macaulay2/m2/document.m2:953:32-953:60]*}}}}, LI{SPAN{TO2{Macaulay2Doc
     :: resolution(..., SortStrategy => ...), "SortStrategy => ..."}, ", ",
     LATER{{*Function[/builddir/build/BUILD/Macaulay2-1.5-r15955/M2/
     Macaulay2/m2/document.m2:953:32-953:60]*}}}}, LI{SPAN{TO2{Macaulay2Doc
     :: resolution(..., StopBeforeComputation => ...),
     "StopBeforeComputation => ..."}, ", ",
     LATER{{*Function[/builddir/build/BUILD/Macaulay2-1.5-r15955/M2/
     Macaulay2/m2/document.m2:953:32-953:60]*}}}}, LI{SPAN{TO2{Macaulay2Doc
     :: resolution(..., Strategy => ...), "Strategy => ..."}, ", ",
     LATER{{*Function[/builddir/build/BUILD/Macaulay2-1.5-r15955/M2/
     Macaulay2/m2/document.m2:953:32-953:60]*}}}}, LI{SPAN{TO2{Macaulay2Doc
     :: resolution(..., SyzygyLimit => ...), "SyzygyLimit => ..."}, ", ",
     LATER{{*Function[/builddir/build/BUILD/Macaulay2-1.5-r15955/M2/
     Macaulay2/m2/document.m2:953:32-953:60]*}}}}}}}}}, DIV{COMMENT{"empty
     documentation body"}}, DIV{class => waystouse, HEADER2{"Ways to use ",
     TT{"resolution"}, " :"}, UL{LI{TOH{User :: resolution(ChainComplex)}},
     LI{TOH{Macaulay2Doc :: resolution(Ideal)}},
     LI{SPAN{"resolution(MonomialIdeal)", ", see ", TOH{Macaulay2Doc ::
     resolution(Ideal)}}}, LI{TOH{Macaulay2Doc :: resolution(Matrix)}},
     LI{TOH{Macaulay2Doc :: resolution(Module)}}}}}

See also