q.is_real()
for some symbolic q
produce erroneous results
#38600
Labels
q.is_real()
for some symbolic q
produce erroneous results
#38600
Initially I thought that
q.is_real()
is equivalent toq.imag().is_zero()
, both of which can produce erroneous results as I reported in #38586. However, it turns out that each of them may produce an incorrect result independently of the other. Hence, I separate the issue with.is_real()
here.In the following example
r.imag().is_zero()
gives correctTrue
whiler.is_real()
gives incorrectFalse
:Output:
This code was originally posted in #38586 (comment)
The text was updated successfully, but these errors were encountered: