summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Krenn <devel@danielkrenn.at>2014-12-28 14:07:49 +0100
committerDaniel Krenn <devel@danielkrenn.at>2014-12-28 14:20:42 +0100
commit6a326a2c24c48370516484afe8efe2a96f467db1 (patch)
treefcbf36640277b84345d903375d0fbb26a75e7eb0
parentMerge branch 'u/chapoton/10519' into t/10519-on-6.5.beta4 (diff)
fixed doctests (ordering of dicts has changed)
-rw-r--r--src/sage/combinat/asymptotics_multivariate_generating_functions.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/sage/combinat/asymptotics_multivariate_generating_functions.py b/src/sage/combinat/asymptotics_multivariate_generating_functions.py
index fd1b119..955bf5d 100644
--- a/src/sage/combinat/asymptotics_multivariate_generating_functions.py
+++ b/src/sage/combinat/asymptotics_multivariate_generating_functions.py
@@ -2724,7 +2724,12 @@ class FFPDElement(sage.structure.element.RingElement):
sage: F
(-1/3, [(x - 2/3, 1)])
sage: F.maclaurin_coefficients([(2*k,) for k in range(6)])
- {(0,): 1/2, (2,): 9/8, (8,): 6561/512, (4,): 81/32, (10,): 59049/2048, (6,): 729/128}
+ {(0,): 1/2,
+ (2,): 9/8,
+ (4,): 81/32,
+ (6,): 729/128,
+ (8,): 6561/512,
+ (10,): 59049/2048}
::
@@ -2738,8 +2743,9 @@ class FFPDElement(sage.structure.element.RingElement):
sage: interval = [1, 2, 4]
sage: S = [r*alpha for r in interval]
sage: F.maclaurin_coefficients(S, numerical=10)
- {(6, 6, 4): 0.7005249476, (12, 12, 8): 0.5847732654,
- (3, 3, 2): 0.7849731445}
+ {(3, 3, 2): 0.7849731445,
+ (6, 6, 4): 0.7005249476,
+ (12, 12, 8): 0.5847732654}
"""
R = self.ring()
if R is None:
@@ -3377,7 +3383,7 @@ class FractionWithFactoredDenominatorRing(
sage: a = {'foo': x**2 + y**2, 'bar': x - y}
sage: b = {x: 1 , y: 2}
sage: FFDR.subs_all(a, b)
- {'foo': 5, 'bar': -1}
+ {'bar': -1, 'foo': 5}
"""
singleton = False
if not isinstance(f, (list, tuple)):