Using Mathematica can be often very frustrating. Either I'm doing something wrong here, or Mathematica is just dumb.
So, I have the below expression:
-1 + ((2*I*(1 + Log[Pi] - (I*Pi)/2))/Pi)*(r + I*t)
And I am trying to put it in form a+i*b, nothing complicated at all, but Mathematica chokes on it. I tried to use the below, but it's ignoring my attempts to tell it that r and t are reals:
In[298]:= Clear[r, t]; x1 = -1 + ((2*I*(1 + Log[Pi] - (I*Pi)/2))/
Pi)*(r + I*t);
FullSimplify[Abs[x1]*Cos[Arg[x1]], Assumptions ->
r*In*Reals && t*In*Reals]
Out[298]= -1 - Im[t] + Re[r] - (2*(1 + Log[Pi])*(Im[r] + Re[t]))/Pi
Where am I going wrong? Please help, I really appreciate.