Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
address reviewer's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rwst committed Aug 31, 2016
1 parent 1f29305 commit 0065f62
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sage/symbolic/expression.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ cdef class Expression(CommutativeRingElement):
except TypeError as err:
# try the evaluation again with the complex field
# corresponding to the parent R
if R in (float, complex):
if R is float:
R_complex = complex
else:
try:
Expand Down Expand Up @@ -1392,7 +1392,6 @@ cdef class Expression(CommutativeRingElement):
sage: float(sqrt(2)/sqrt(abs(-(I - 1)*sqrt(2) - I - 1)))
0.9036020036...
"""
from sage.functions.other import real, imag
try:
return float(self._eval_self(float))
except TypeError:
Expand Down

0 comments on commit 0065f62

Please sign in to comment.