i1 : R = QQ[w,x,y,z]; |
i2 : I = ideal(w*x^2-42*y*z, x^6+12*w*y+x^3*z, w^2-47*x^4*z-47*x*z^2) |
i3 : decompose I |
If the ideal given is a prime ideal then decompose will return the ideal given.
i4 : R = ZZ/101[w..z]; |
i5 : I = ideal(w*x^2-42*y*z, x^6+12*w*y+x^3*z, w^2-47*x^4*z-47*x*z^2); |
i6 : decompose I |
See associated primes of an ideal for information on finding associated prime ideals and primary decomposition for more information about finding the full primary decomposition of an ideal.