next | previous | forward | backward | up | top | index | toc | packages | Macaulay2 website
SubalgebraBases :: subringIntersection

subringIntersection -- Intersection of subrings

Synopsis

Description

Computes the intersection of subrings "S_1" and "S_2". These subrings must be subrings of the same ambient ring. The ambient ring is allowed to be a polynomial ring or the quotient of a polynomial ring.

i1 : R = QQ[x,y];
i2 : I = ideal(x^3 + x*y^2 + y^3);

o2 : Ideal of R
i3 : Q = R/I;
i4 : S1 = subring {x^2, x*y};
i5 : S2 = subring {x, y^2};
i6 : S = subringIntersection(S1, S2);
 -- 0.000101069 seconds elapsed
 -- 0.00126552 seconds elapsed
 -- 0.000308659 seconds elapsed
 -- 0.000098854 seconds elapsed
 -- 0.00109106 seconds elapsed
 -- 0.000253794 seconds elapsed
 -- 0.000089367 seconds elapsed
 -- 0.000086583 seconds elapsed
 -- 0.0002138 seconds elapsed
 -- 0.000097873 seconds elapsed
 -- 0.0010018 seconds elapsed
 -- 0.000251099 seconds elapsed
 -- 0.000096131 seconds elapsed
 -- 0.000965258 seconds elapsed
 -- 0.000244568 seconds elapsed
 -- 0.000099657 seconds elapsed
 -- 0.000936964 seconds elapsed
 -- 0.000250569 seconds elapsed
 -- 0.000097593 seconds elapsed
 -- 0.00101463 seconds elapsed
 -- 0.000256751 seconds elapsed
timing raw subduction
timing raw subduction
timing raw subduction
timing raw subduction
timing raw subduction
timing raw subduction
timing raw subduction
i7 : gens S

o7 = | x2 x2y2+xy3 y4 xy3 y6 xy5 |

             1       6
o7 : Matrix Q  <--- Q
i8 : isSAGBI S
 -- 0.000100208 seconds elapsed
 -- 0.00119179 seconds elapsed
 -- 0.00024579 seconds elapsed
 -- 0.000100127 seconds elapsed
 -- 0.00110307 seconds elapsed
 -- 0.000242904 seconds elapsed
 -- 0.000119975 seconds elapsed
 -- 0.000989423 seconds elapsed
 -- 0.000261169 seconds elapsed
 -- 0.000093245 seconds elapsed
 -- 0.000924932 seconds elapsed
 -- 0.000231683 seconds elapsed
 -- 0.000093024 seconds elapsed
 -- 0.000914803 seconds elapsed
 -- 0.000245139 seconds elapsed
 -- 0.000096841 seconds elapsed
 -- 0.000999181 seconds elapsed
 -- 0.00024579 seconds elapsed
 -- 0.000093916 seconds elapsed
 -- 0.00112847 seconds elapsed
 -- 0.000243026 seconds elapsed
 -- 0.000093485 seconds elapsed
 -- 0.00100916 seconds elapsed
 -- 0.000238546 seconds elapsed
 -- 0.000101821 seconds elapsed
 -- 0.000965919 seconds elapsed
 -- 0.000238086 seconds elapsed
 -- 0.000099246 seconds elapsed
 -- 0.000926825 seconds elapsed
 -- 0.000238726 seconds elapsed
 -- 0.000094006 seconds elapsed
 -- 0.000907339 seconds elapsed
 -- 0.000251581 seconds elapsed
 -- 0.000099797 seconds elapsed
 -- 0.000994042 seconds elapsed
 -- 0.000246201 seconds elapsed
 -- 0.000099486 seconds elapsed
 -- 0.00143295 seconds elapsed
 -- 0.000524192 seconds elapsed
 -- 0.000098174 seconds elapsed
 -- 0.00150788 seconds elapsed
 -- 0.000454101 seconds elapsed
timing raw subduction
timing raw subduction
timing raw subduction
timing raw subduction
timing raw subduction
timing raw subduction
timing raw subduction
timing raw subduction
timing raw subduction
timing raw subduction
timing raw subduction
timing raw subduction
timing raw subduction
timing raw subduction

o8 = true

If the generators of $S$ form a sagbi basis and the degree limit is high enough, then they are a generating set for the intersection.

See also

Ways to use subringIntersection :

For the programmer

The object subringIntersection is a method function with options.