Skip to content

Instantly share code, notes, and snippets.

@asmeurer
Created June 16, 2011 05:00
Show Gist options
  • Save asmeurer/1028696 to your computer and use it in GitHub Desktop.
Save asmeurer/1028696 to your computer and use it in GitHub Desktop.
float(oo) windows fix
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