作者Gwaewluin (神无月 孝臣)
看板MATLAB
标题Re: [问题] 虚数
时间Fri Aug 25 10:28:03 2006
※ 引述《blackyen (YEN)》之铭言:
: 用函数exp(i*theta)
: 怎麽取实部和虚部
: 还有怎麽取角度
: 请哪位大大可以交一下
real(exp(i*theta))
imag(exp(i*theta))
angle(exp(i*theta))
顺便说
长度直接用绝对值abs(exp(i*theta))就好了
--
Deserves death! I daresay he does. Many that live deserve death. And some die
that deserve life. Can you give that to them? Then be not too eager to deal out
death in the name of justice, fearing for your own safty. Even the wise cannot
see all ends.
Gandalf to Frodo
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.120.25.235
※ 编辑: Gwaewluin 来自: 140.120.25.235 (08/25 10:28)