intersect |
Syntax |
Intersection(E_1:LIST,....,E_n:LIST):LIST Intersection(E_1:IDEAL,...,E_n:IDEAL):IDEAL Intersection(E_1:MODULE,....,E_n:MODULE):MODULE |
Description |
Example |
/**/ Use R ::= QQ[x,y,z]; /**/ Points := [[0,0], [1,0], [0,1], [1,1]]; -- a list of points in the plane /**/ I := ideal(x, y); -- the ideal for the first point /**/ Foreach P In Points Do I := intersect(I, ideal(x-P[1]*z,y-P[2]*z)); EndForeach; /**/ I; -- the ideal for (the projective closure of) Points ideal(y^2 -y*z, x^2 -x*z) Intersection(["a","b","c"], ["b","c","d"]); ["b", "c"] ------------------------------- |
See Also |