forked from Macaulay2/M2
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We made a minor change to the function "soc"
- Loading branch information
1 parent
82a49a7
commit 2afdf31
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
newPackage( | ||
"VNumber", | ||
Version => "1.0", | ||
Date => "October 24, 2023", | ||
Date => "September 12, 2024", | ||
Authors => {{Name => "Antonino Ficarra", Email => "[email protected]", HomePage => "https://www.researchgate.net/profile/Antonino-Ficarra"}, | ||
{Name => "Emanuele Sgroi", Email => "[email protected]", HomePage => "https://www.researchgate.net/profile/Emanuele-Sgroi"}}, | ||
Headline => "compute v-number of homogeneous ideals and v-function of monomial ideals", | ||
|
@@ -375,12 +375,12 @@ soc (Ideal, Ideal) := (I, P) -> ( | |
XP := ring I; | ||
if not(isMember(true, (stableMax(I)/(Q->P==Q)))) then XP = product(select(stablePrimes(I), Q -> (Q!=P and isSubset(P,Q)==true))); | ||
f := reesMap(I); | ||
R := source f/(sub(I, source f) + ker f); | ||
R := source f/ker f; | ||
IR := sub(I,R); | ||
PR := sub(P,R); | ||
QR := if not(XP===ring I) then sub(P + saturate XP, R) else ideal(1_R); | ||
QR := if not(XP===ring I) then sub(XP, R) else ideal(1_R); | ||
A := quotient(IR, PR); | ||
B := quotient(IR, QR); | ||
B := intersect(quotient(IR, PR), saturate(IR, QR)); | ||
A/B | ||
); | ||
|
||
|