Updates:
        Labels: Milestone-Release0.6.6

Comment #8 on issue 1473 by [email protected]: __mod__ does not work on  
reals
http://code.google.com/p/sympy/issues/detail?id=1473

I encountered this bug while doing complex exponentials:

In [1]: oo % 2
---------------------------------------------------------------------------
ZeroDivisionError                         Traceback (most recent call last)

/Users/fabian/Desktop/sympy/<ipython console> in <module>()

/Users/fabian/Desktop/sympy/sympy/core/decorators.pyc in  
__sympifyit_wrapper(a, b)
     104             # b successfully _sympified, lets call func again.
     105             # if it raises here -- exception goes to caller
--> 106             return func(a, b)
     107
     108     return __sympifyit_wrapper

/Users/fabian/Desktop/sympy/sympy/core/numbers.pyc in __mod__(self, other)
     548     def __mod__(self, other):
     549         if isinstance(other, Rational):
--> 550             n = (self.p*other.q) // (other.p*self.q)
     551             return Rational(self.p*other.q - n*other.p*self.q,  
self.q*other.q)
     552         if isinstance(other, Real):

ZeroDivisionError: integer division or modulo by zero

It should return NaN

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
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