Re
Usage
• Re[z] 用来给出复数 z的实数部分.
Notes
• 如果 expr 不是数值,Re[expr] 将不进行计算.
Further Examples
This extracts the real part of this complex number.
In[1]:=
|
Out[1]=
|
Since either a or b might be complex, Re and Im don't evaluate further.
In[2]:=
|
Out[2]=
|
ComplexExpand assumes the variables a and b are real.
In[3]:=
|
Out[3]=
|
|