Updates:
        Status: Accepted
        Labels: -Priority-Medium -PassedReview Priority-High

Comment #6 on issue 2386 by asmeurer: gosper(...) is missing tests and docstring
http://code.google.com/p/sympy/issues/detail?id=2386

See issue 1525 comment 24.  This introduced a problem:

In [1]: factorial(x).series(x, 0, 3)
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)

/Users/aaronmeurer/Documents/python/sympy/sympy/<ipython console> in <module>()

/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/core/expr.py in series(self, x, x0, n, dir)
   1342
   1343         if n != None: # nseries handling
-> 1344             s1 = self._eval_nseries(x, n=n, logx=None)
   1345             o = s1.getO() or S.Zero
   1346             if o:

/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/core/function.pyc in _eval_nseries(self, x, n, logx)
    361         g = None
    362         for i in xrange(n+2):
--> 363             g = self.taylor_term(i, arg, g)
    364             g = g.nseries(x, n=n, logx=logx)
    365             l.append(g)

/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/core/function.pyc in taylor_term(cls, n, x, *previous_terms)
    520         """
    521         x = sympify(x)
--> 522         return cls(x).diff(x, n).subs(x, 0) * x**n / C.Factorial(n)
    523
    524

/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/core/basic.pyc in subs(self, *args)
    802         elif len(args) == 2:
    803             old, new = args
--> 804             return self._subs_old_new(old, new)
    805         else:
    806             raise TypeError("subs accepts either 1 or 2 arguments")

/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/core/cache.py in wrapper(*args, **kw_args)
    101         except KeyError:
    102             pass
--> 103         func_cache_it_cache[k] = r = func(*args, **kw_args)
    104         return r
    105     return wrapper

/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/core/basic.pyc in _subs_old_new(self, old, new)
    811         old = sympify(old)
    812         new = sympify(new)
--> 813         return self._eval_subs(old, new)
    814
    815     def _eval_subs(self, old, new):

/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/core/function.pyc in _eval_subs(self, old, new)
    700         if self==old:
    701             return new
--> 702 return Derivative(*map(lambda x: x._eval_subs(old, new), self.args))
    703
    704     def matches(self, expr, repl_dict={}, evaluate=False):

/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/core/function.pyc in __new__(cls, expr, *symbols, **assumptions)
    618
619 if i == iwas: # didn't get an update because of bad input --> 620 raise ValueError('Derivative expects Symbol [, Integer] args but got %s, %s' % (s, count))
    621
    622             symbol_count.append((s, count))

ValueError: Derivative expects Symbol [, Integer] args but got 0, 1

which is a test failure in the tutorial.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to