Skip to content

Commit

Permalink
Fix RealMPFR
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Jun 3, 2017
1 parent fb4b189 commit 16c9422
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion symengine/lib/symengine_wrapper.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ cdef class ComplexDouble(Number):
return self.real_part()._sage_() + sage.I * self.imaginary_part()._sage_()


cdef class RealMPFR(Number):
class RealMPFR(Float):

@property
def is_Float(self):
Expand Down
1 change: 1 addition & 0 deletions symengine/tests/test_sympy_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def test_Float():
raises(ValueError, lambda: Float("1.23", dps = 3, precision = 10))
raises(ValueError, lambda: Float(A, dps = 3, precision = 16))
if have_mpfr:
from symengine.sympy_compat import RealMPFR
A = Float("1.23", dps = 16)
B = Float("1.23", precision = 56)
assert A == B
Expand Down

0 comments on commit 16c9422

Please sign in to comment.