2016/10/29

Euler's formula 歐拉公式

Leonhard Euler (1707-1783) 瑞士數學家
Euler 歐拉/尤拉

Euler's formula helps to find the exponential function of a complex number.

Euler's formula 歐拉公式:

ejx = cosx + isinx = cisx

Therefore,

e = cosθ + isinθ (1)
e-iθ = cos(-θ) + isin(-θ) = cosθ - isinθ (2)

(1) + (2) gives
=> e + e-iθ =  2cosθ
=> cosθ = ( e + e-iθ )/2

(1) - (2) gives
=> e - e-jθ = 2isinθ
=> sinθ = ( e - e-iθ )/2i

cosθ = Re(e) =( e + e-iθ )/2
sinθ = Im(e) =( e - e-iθ )/2i

Example:

ei = cos(1) + isin(1) = 0.540302306 + 0.841470985i
e = cos(π) + isin(π) = -1 => e + 1 = 0

Matlab function:
exp(i*pi) or exp(j*pi)

參考資料

cis (mathematics) (Wikipedia)
Relations between cosine, sine and exponential functions
Exponential function & natural logarithm 指數函數與自然對數
Magnitude of Exponential Function exp() = ? 如何求exp()的大小/絕對值

沒有留言:

張貼留言