-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcalculateExamples.m
More file actions
30 lines (26 loc) · 871 Bytes
/
calculateExamples.m
File metadata and controls
30 lines (26 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
AttachSpec("SingularitiesDim2/IntegralClosureDim2.spec");
Attach("MultiplierMeromorphic.m");
P<x, y> := LocalPolynomialRing(RationalField(), 2, "lglex");
// Input
f := (y^2-x^3)^4 + x^8*y^5;
g := (y^2-x^3)^1;
// Log resolution
Nf, Ng, N, Prox, commonFactor, Coeffs := LogResolutionMeromorphic(f, g);
printf "Nf = %o\n\n", Nf;
printf "Ng = %o\n\n", Ng;
printf "N = %o\n\n", N;
// Jumping numbers and multiplier ideals
S := MultiplierIdealsMeromorphic(f, g : MinJN:=9/10, MaxJN:=5/3, ComputeIdeals:=true);
// Print output data nicely
for JNData in S do
JN := JNData[1];
multiplierIdealData := JNData[2];
fExponent := multiplierIdealData[1];
generators := multiplierIdealData[2];
printf "JN = %o\n", JN;
printf "MI = f^%o * ( ", fExponent;
for i->gen in generators do
printf "%o", gen;
printf (i lt #generators) select ", " else " )\n\n";
end for;
end for;