summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Krenn <devel@danielkrenn.at>2014-12-29 13:30:43 +0100
committerDaniel Krenn <devel@danielkrenn.at>2014-12-29 13:30:43 +0100
commit301843b542aa2a6d326e394853ea3b1de0af2e6e (patch)
tree5c26ab9c6547c4094dd354a067d8dd766848a5d1
parentupdate authors, copyright; new reference; some empty lines inserted (diff)
fixed long doctest (introduced in c37addd - trac #10519 pep8 fully compliant)
-rw-r--r--src/sage/combinat/asymptotics_multivariate_generating_functions.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sage/combinat/asymptotics_multivariate_generating_functions.py b/src/sage/combinat/asymptotics_multivariate_generating_functions.py
index aa4a2c4..5f22530 100644
--- a/src/sage/combinat/asymptotics_multivariate_generating_functions.py
+++ b/src/sage/combinat/asymptotics_multivariate_generating_functions.py
@@ -3708,14 +3708,14 @@ class FractionWithFactoredDenominatorRing(
P = product(S, repeat=k + l)
diffo = Integer(0)
for t in P:
- if product_derivs[(j, k, l) + FractionWithFactoredDenominatorRing._diff_seq(V, t)]:
+ idx = (j, k, l) + FractionWithFactoredDenominatorRing._diff_seq(V, t)
+ if product_derivs[idx] != Integer(0):
MM = Integer(1)
for (a, b) in t:
MM *= M[a][b]
if a != b:
MM *= Integer(2)
- diffo += MM * product_derivs[(j, k, l) +
- FractionWithFactoredDenominatorRing._diff_seq(V, t)]
+ diffo += MM * product_derivs[idx]
DD[(j, k, l)] = (-Integer(1)) ** (k + l) * diffo
return DD