ComplexExpand
Usage
• ComplexExpand[expr] 假设所有的变量都是实数来展开expr.
• ComplexExpand[expr,  , , ... ] 假设匹配任何  的变量都是复数来展开 expr.
Notes
• 例如: ComplexExpand[Sin[x + I y]]  . • 在ComplexExpand的第二个参数中给出的变量可以是模式。 • 例如: ComplexExpand[Sin[x], x]  . • 可以从集合{Re, Im, Abs, Arg, Conjugate, Sign}. ComplexExpand 中的函数列表给出的选项TargetFunctions总是根据指定的函数给出结果。 • ComplexExpand[expr, vars, TargetFunctions -> Abs, Arg ] 转换为极坐标。
Further Examples
You can expand complex powers.
In[1]:=
|
Out[1]=
|
In[2]:=
|
Out[2]=
|
The result here is not x y because x or y could be complex.
In[3]:=
|
Out[3]=
|
This assumes x and y are real.
In[4]:=
|
Out[4]=
|
You can expand complex exponential, trig, and hyperbolic functions.
In[5]:=
|
Out[5]=
|
In[6]:=
|
Out[6]=
|
In[7]:=
|
Out[7]=
|
You can expand trig and hyperbolic functions of complex arguments.
In[8]:=
|
Out[8]=
|
In[9]:=
|
Out[9]=
|
Using the TargetFunction option This forces Mathematica to assume both x and y are real.
In[10]:=
|
Out[10]=
|
This is an expansion in terms of z and the absolute value of z.
In[11]:=
|
Out[11]=
|
Now we expand in terms of polar coordinates.
In[12]:=
|
Out[12]=
|
Finally, here is an expansion in terms of z and its conjugate.
In[13]:=
|
Out[13]=
|
|