summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Schodet2013-08-16 09:40:18 +0200
committerNicolas Schodet2013-08-23 08:56:35 +0200
commit2d1561200f5660ee65936af44f6d7b913789cf55 (patch)
treec6df02c4f5502ebdce170d74ff5d37621c0a35b4
parent647f88b40eb847e3cdd3dab287cf7c2db5d06273 (diff)
cesar/lib/fixed: update for newer sympy version
-rw-r--r--cesar/lib/fixed/series.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cesar/lib/fixed/series.py b/cesar/lib/fixed/series.py
index fc83f3292b..e107854f8a 100644
--- a/cesar/lib/fixed/series.py
+++ b/cesar/lib/fixed/series.py
@@ -9,10 +9,10 @@ def series_coeffs (expr, order, monoms):
"""Find polynomial coefficients of the Taylor series of given expression
to the given order. Assert that terms are associated with the given
monomials."""
- s = expr.series (x, point = 0, n = order, with_order = False)
+ s = expr.series (x, x0 = 0, n = order).removeO ()
p = sympy.Poly (s, x)
- assert p.monoms == tuple ((i, ) for i in monoms)
- return [float (i) for i in p.iter_coeffs ()]
+ assert p.monoms () == [(i, ) for i in monoms]
+ return [float (i) for i in p.coeffs ()]
def poly_fixed (q, coeffs):
"""Compute the fixed point representation of a polynomial."""