Say there is a complex number a=x+I
, where x
is a real number. Then b=Join[{a},{1+I}]
, and I use Re[b]
.
The result is {Re[x],1}
, but the desired result is {x,1}
.
How can I set x
as a global real number from the very beginning? Please be noted that x
should be treated a real number no matter what kind of calculation is used.
I have read many questions, but none is fit to my situation.
This problem bothers me for a very long time, and I hope someone can give me the answer.
$Assumptions = a > 0
. $\endgroup$