Re: [問題] 虛數
※ 引述《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)
MATLAB 近期熱門文章
PTT數位生活區 即時熱門文章