Macaulay2 » Documentation
Packages » Classic > ideal(String)
next | previous | forward | backward | up | index | toc

ideal(String) -- make an ideal using classic Macaulay syntax

Synopsis

Description

Creates an ideal using an abbreviated format. Each polynomial has the form described in Classic. The polynomials are separated by commas. Spaces and newline characters are ignored.

i1 : R = ZZ/32003[a..d,x_1..x_4];
i2 : I = ideal "a+b2-1,(a+b)(c+d),x[1]-x[2]3"

             2                                    3
o2 = ideal (b  + a - 1, a*c + b*c + a*d + b*d, - x  + x )
                                                  2    1

o2 : Ideal of R

See also

Ways to use this method: