Skip to content

Commit 5b4baad

Browse files
authored
Merge pull request #35 from ACSVMath/bug-fix-asymptotics
Fix a problem with asymptotic formula
2 parents 6df60f1 + 74728e5 commit 5b4baad

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

sage_acsv/asymptotics.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,10 @@ def diagonal_asymptotics_combinatorial(
649649
return
650650

651651
asm_quantities = []
652+
# Store copy of vs and r in case order changes due to parametrization
653+
vs_copy, r_copy = copy(vs), copy(r)
652654
for cp in min_crit_pts:
655+
vs, r = copy(vs_copy), copy(r_copy)
653656
# Step 1: Determine if pt is a transverse multiple point of H, and compute the factorization
654657
# for now, we'll just try to factor it in the polynomial ring
655658
R = PolynomialRing(QQbar, len(vs), vs)
@@ -734,10 +737,10 @@ def diagonal_asymptotics_combinatorial(
734737
# For non-complete intersections, we must compute the parametrized Hessian matrix
735738
if s != d:
736739
Qw = compute_implicit_hessian(factors, vs, r, subs=subs_dict)
737-
expansion = SR(G.subs(subs_dict) / abs(Gamma.determinant()) / unit)
740+
expansion = SR(abs(prod([v for v in vs[: d - s]]).subs(subs_dict)) * G.subs(subs_dict) / abs(Gamma.determinant()) / unit)
738741
B = SR(
739-
prod([v for v in vs[: d - s]]).subs(subs_dict)
740-
/ (r[-1] * Qw).determinant()
742+
1
743+
/ Qw.determinant()
741744
/ 2 ** (d - s)
742745
)
743746
else:

0 commit comments

Comments
 (0)