Is there a way to check if an expression contains complex expressions / imaginary numbers?
The documentation says that you can’t check if an expression contains I because of how it is interpreted.
I have also tried ImaginaryQ[expr_] := expr != Conjugate[expr] and Simplify[expr] =!= Simplify[Conjugate[expr]], but it does not yield accurate results.
I have also tried to use MemberQ[expr, Complex], but that does not seem to work either.
I posted some examples into a notebook:
http://www.eacousineau.com/download/complex-test.nb
How about
Using it on two of your examples: