>>513
オイラーの公式より
z=exp(iθ)=cosθ+isinθ、~z=cosθ-isinθ
cosθ=(z+~z)/2
isinθ=(z-~z)/2,sinθ=-i(z-~z)/2
~zはzの共役複素数。