Converting cosine to exponential form
    조회 수: 8 (최근 30일)
  
       이전 댓글 표시
    
I am trying to convert a cosine function to its exponential form but I do not know how to do it.
[more elaboration]
syms w y
function1 = input('user please enter input');
 %user input is cos(y)
desired_output  = (-1)^(w*pi)  if y = w*pi
댓글 수: 0
답변 (1개)
  Jan
      
      
 2021년 11월 7일
        cos(x) = 0.5 * (exp(1i * x) + exp(-1i * x))
exp(ix) = cos(x) + 1i * sin(x)
I do not understand, why the desired output is (-1)^(w*pi).
참고 항목
카테고리
				Help Center 및 File Exchange에서 Linear Algebra에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

