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

Commit 0065f62

Browse files
committed
address reviewer's comments
1 parent 1f29305 commit 0065f62

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sage/symbolic/expression.pyx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@ cdef class Expression(CommutativeRingElement):
11911191
except TypeError as err:
11921192
# try the evaluation again with the complex field
11931193
# corresponding to the parent R
1194-
if R in (float, complex):
1194+
if R is float:
11951195
R_complex = complex
11961196
else:
11971197
try:
@@ -1392,7 +1392,6 @@ cdef class Expression(CommutativeRingElement):
13921392
sage: float(sqrt(2)/sqrt(abs(-(I - 1)*sqrt(2) - I - 1)))
13931393
0.9036020036...
13941394
"""
1395-
from sage.functions.other import real, imag
13961395
try:
13971396
return float(self._eval_self(float))
13981397
except TypeError:

0 commit comments

Comments
 (0)