i1 : examples "while"
--loading the Macaulay2 documentation from /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/
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 x; 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
|