next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: examples

examples -- list the examples in documentation

Synopsis

Description

The output is returned as a Net of height 0, so the examples will be displayed indented by just white space, allowing immediate entry. Alternatively, one could use print to display them with no indentation.
i1 : examples "while"
--loading the Macaulay2 documentation from /home/charles/local/src/Macaulay2/release-branches/1.5/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

o1 = 
     i = 0 ; while i < 10 list i^2 do i = i+1
     i = 0 ; while i < 4 do (print i; i = i+1)
     i = 0 ; while i < 10 list (i = i+1; i^2)
     i = 0 ; while i < 10 list (i = i+1; if odd i then continue; i^2)
     i = 0 ; while i < 10 list (i = i+1; if odd i then continue 1234; i^2)
     i = 0 ; while i < 10 list (i = i+1; if i == 5 then break i; i^2)
     i = 0 ; while i < 10 list (i = i+1; if i == 5 then break; i^2)
i2 : examples (ideal,Matrix)

o2 = 
     R = ZZ/7[w,x,y,z];
     f = vars R
     ideal f
     g = matrix{{x^2-w*y, x*y-w*z, x*z-y^2},{y^2-x*z,x^2*y-z^2,x^3-y*z}}
     ideal g
i3 : print oo
R = ZZ/7[w,x,y,z];
f = vars R
ideal f
g = matrix{{x^2-w*y, x*y-w*z, x*z-y^2},{y^2-x*z,x^2*y-z^2,x^3-y*z}}
ideal g

See also

Ways to use examples :