Im
Im[e]
finds the imaginary part of e
.
Attributes[Im] := {Listable, NumericFunction, Protected}
Simple examples
In[1]:= Im[1] Out[1]= 0
In[2]:= Im[0.5] Out[2]= 0
In[3]:= Im[(2)/(3)] Out[3]= 0
In[4]:= Im[2 + I] Out[4]= 1
In[5]:= Im[(1*E^(I*(Pi)/(4)))/(2)] Out[5]= (1)/(2*Sqrt[2])
In[6]:= Im[(I*-1)/(Sqrt[2])] Out[6]= (-1)/(Sqrt[2])
In[7]:= Im[a*I*b] Out[7]= Re[a*b]
In[8]:= Im[(I)/(Sqrt[2])*-1 + (1*E^((I*Pi))/(4))/(2)] Out[8]= (1)/((2*Sqrt[2]))*-1