Comment #9 on issue 1473 by [email protected]: __mod__ does not work on
reals
http://code.google.com/p/sympy/issues/detail?id=1473
this las thing can be easily fixed implementing __mod__ in Inifnity:
diff --git a/sympy/core/numbers.py b/sympy/core/numbers.py
index 11a2b72..59e86e5 100644
--- a/sympy/core/numbers.py
+++ b/sympy/core/numbers.py
@@ -1190,6 +1190,9 @@ def __le__(a, b):
return True
return False
+ def __mod__(self, other):
+ return S.NaN
+
class NegativeInfinity(Rational):
__metaclass__ = SingletonMeta
--
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
-~----------~----~----~----~------~----~------~--~---