Status: Accepted
Owner: asmeurer
Labels: Type-Defect Priority-Medium

New issue 2638 by asmeurer: Bug with Product
http://code.google.com/p/sympy/issues/detail?id=2638

In [1]: Product(2**(1/factorial(n)), (n, 0, oo))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (4, 0))

---------------------------------------------------------------------------
ZeroDivisionError                         Traceback (most recent call last)
/Users/aaronmeurer/Documents/python/sympy/sympy-scratch/<ipython-input-1-0755716d40a3> in <module>()
----> 1 Product(2**(1/factorial(n)), (n, 0, oo))

/Users/aaronmeurer/Documents/python/sympy/sympy-scratch/sympy/concrete/products.pyc in __new__(cls, term, *symbols, **assumptions)
     39
     40             if isinstance(a, C.Number) and isinstance(n, C.Number):
---> 41 return Mul(*[term.subs(k, i) for i in xrange(int(a), int(n)+1)])
     42         else:
     43             raise NotImplementedError

/Users/aaronmeurer/Documents/python/sympy/sympy-scratch/sympy/core/numbers.pyc in __int__(self)
    750
    751     def __int__(self):
--> 752         return int(float(self.p)/self.q)
    753
    754     def __eq__(self, other):

ZeroDivisionError: float division by zero


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

Reply via email to