Created
June 16, 2011 05:00
-
-
Save asmeurer/1028696 to your computer and use it in GitHub Desktop.
float(oo) windows fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/sympy/core/evalf.py b/sympy/core/evalf.py | |
index 05e6de9..ce276e9 100644 | |
--- a/sympy/core/evalf.py | |
+++ b/sympy/core/evalf.py | |
@@ -28,8 +28,8 @@ | |
# Used in a few places as placeholder values to denote exponents and | |
# precision levels, e.g. of exact numbers. Must be careful to avoid | |
# passing these to mpmath functions or returning them in final results. | |
-INF = 1e1000 | |
-MINUS_INF = -1e1000 | |
+INF = float(mpmath_inf) | |
+MINUS_INF = float(-mpmath_inf) | |
# ~= 100 digits. Real men set this to INF. | |
DEFAULT_MAXPREC = 333 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment