Skip to content

Commit 16d6b87

Browse files
authored
Merge pull request #43 from ACSVMath/repeated-factors
Fix issue with whitney strat not being radical
2 parents 5b4baad + c8ef330 commit 16d6b87

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sage_acsv/asymptotics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ def _find_contributing_points_combinatorial(
12631263
stratum = whitney_strat[i]
12641264
if stratum.subs(
12651265
{pure_H(wi): val for wi, val in zip(vs, x)}
1266-
) == Ideal(pure_H(0)):
1266+
) == Ideal(pure_H.zero()):
12671267
raise ACSVException(
12681268
"Non-generic direction detected - critical point {w} is contained in {dim}-dimensional stratum".format(
12691269
w=str(x), dim=i

sage_acsv/whitney.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ def whitney_stratification(IX, R):
127127
for fs in Combinations(factors)
128128
if len(fs) >= 1
129129
):
130-
strat = [Ideal(R(1)) for _ in range(d)]
131-
strat[-1] = Ideal(IX.gens())
130+
strat = [Ideal(R.one()) for _ in range(d)]
131+
strat[-1] = compute_radical(IX)
132132
for k in reversed(range(1, d)):
133133
Jac = matrix([[f.derivative(v) for v in vs] for f in strat[k].gens()])
134134
sing = compute_radical(Ideal(Jac.minors(d - k) + strat[k].gens()))
@@ -144,7 +144,7 @@ def whitney_stratification(IX, R):
144144
P.subscheme(IX.change_ring(R_hom).homogenize(z0)), P
145145
)
146146

147-
strat = [Ideal(R(1)) for _ in range(len(proj_strat))]
147+
strat = [Ideal(R.one()) for _ in range(len(proj_strat))]
148148
for stratum in proj_strat:
149149
for Id in compute_primary_decomposition(stratum.defining_ideal()):
150150
newId = Id.subs({z0: 1}).change_ring(R)

0 commit comments

Comments
 (0)