summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Krenn <git@danielkrenn.at>2016-01-31 15:19:55 +0100
committerDaniel Krenn <git@danielkrenn.at>2016-01-31 15:29:21 +0100
commitae42ad6539aaf99a7986a2bb1c2f018262296d5b (patch)
tree745c18a4968df45d4a60e0762226606dfdabc012
parentTrac #10519: fix doctest (simplify symbolic coefficients) (diff)
Trac #10519: partial revert of commit 137f3c and follow-up ticket
-rw-r--r--src/sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py b/src/sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py
index 3f35407..3f94def 100644
--- a/src/sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py
+++ b/src/sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py
@@ -196,7 +196,7 @@ TESTS::
[(y - 1, 1), (x^2 + 1, 1), (x*y^2*t + x^2*t + t - 1, 1)])
sage: p = {x: 1, y: 1, t: 1/3}
sage: alpha = [1, 1, 1]
- sage: F.asymptotics_multiple(p, alpha, 1, var('r'))
+ sage: F.asymptotics_multiple(p, alpha, 1, var('r')) # not tested - see #19989
Various
@@ -4243,9 +4243,8 @@ class FractionWithFactoredDenominatorRing(
@staticmethod
def direction(v, coordinate=None):
r"""
- Return ``[vv / v[coordinate] for vv in v]`` where
- ``coordinate`` is the largest index of a nonzero entry of ``v``
- if not specified otherwise.
+ Return ``[vv/v[coordinate] for vv in v]`` where
+ ``coordinate`` is the last index of ``v`` if not specified otherwise.
INPUT:
@@ -4261,8 +4260,7 @@ class FractionWithFactoredDenominatorRing(
(1, 3/2, 5/2)
"""
if coordinate is None:
- coordinate = len(v) - 1 -\
- next(vv[0] for vv in enumerate(reversed(v)) if vv[1] != 0)
+ coordinate = len(v) - 1
return tuple([vv / v[coordinate] for vv in v])