Skip to content

Commit

Permalink
added elimination methods for LeftIdeals
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Dec 7, 2023
1 parent 86aef88 commit 480350e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions M2/Macaulay2/packages/Elimination.m2
Expand Up @@ -81,6 +81,7 @@ eliminate1 = (elimindices,I) -> (
ideal mingens ideal toR selectInSubring(1,generators gb J)
)

eliminate(List, LeftIdeal) :=
eliminate (List, Ideal) := (v,I) -> (
R := ring I;
-- if R is a quotient ring, then give error
Expand All @@ -92,8 +93,11 @@ eliminate (List, Ideal) := (v,I) -> (
eliminate1(varlist, I)
)

eliminate(LeftIdeal, RingElement) :=
eliminate (Ideal, RingElement) := (I,v) -> eliminate({v},I)
eliminate(LeftIdeal, List) :=
eliminate (Ideal, List) := (I,v) -> eliminate(v,I)
eliminate(RingElement, LeftIdeal) :=
eliminate(RingElement, Ideal) := (v,I) -> eliminate({v},I)

-----------------------------------------------
Expand Down Expand Up @@ -175,6 +179,10 @@ document {


undocumented {
(eliminate, RingElement, LeftIdeal),
(eliminate, LeftIdeal, RingElement),
(eliminate, List, LeftIdeal),
(eliminate, LeftIdeal, List),
(eliminate, Ideal, RingElement),
(eliminate, Ideal, List)
}
Expand Down

0 comments on commit 480350e

Please sign in to comment.