I am working with Matlab to reproduce SAR image by radar. But when I calculate the EXP function, the result is so different.
>> exp(0.000000000000000e+00 - 8.378507193591911e+06i)
ans =
0.5122 + 0.8588i
>> exp(0.000000000000000e+00 - 8.378522834360446e+06i)
ans =
-0.4534 - 0.8913i
I do not know why in the result, one is negative, and one is positive. Please help me with this. Thank you so much for your consideration.

댓글 수: 3

Torsten
Torsten 2018년 9월 3일
exp(it) = cos(t)+i*sin(t)
So why are you surprised about the result ?
Best wishes
Torsten.
Stephen23
Stephen23 2018년 9월 3일
편집: Stephen23 2018년 9월 3일
There is nothing surprising about those results, their difference is more than 2*pi:
>> L = 8.378507193591911e+06;
>> R = 8.378522834360446e+06;
>> R-L
ans = 15.641
You can plot this easily, and see how that range includes real and imaginary parts that are both positive and negative:
>> V = linspace(L,R,100);
>> E = exp(complex(0,V));
>> plot(E,'-*')
>> M = [real(E(:)),imag(E(:))];
>> plot(V,M,'-*')
Nguyen Trung Kien
Nguyen Trung Kien 2018년 9월 4일
Thank you so much for your comments. I understood that everything is normal and my question is weird so I had closed it. Many thanks for your explanations.

댓글을 달려면 로그인하십시오.

 채택된 답변

madhan ravi
madhan ravi 2018년 9월 3일

0 개 추천

I tried and got the same result too even the result in Wolfram is the same.

댓글 수: 4

Nguyen Trung Kien
Nguyen Trung Kien 2018년 9월 3일
Because if I continue using this result for Fast Fourier Transform, the final result will become wrong. So do you have any suggestion for me in this situation?
madhan ravi
madhan ravi 2018년 9월 3일
편집: madhan ravi 2018년 9월 3일
No there is nothing wrong with both the answers. You can also verify the results in other appilications they give the same answers as the above.Even if you paste the expressing in google the answers you get are the same!
Nguyen Trung Kien
Nguyen Trung Kien 2018년 9월 3일
I have just tried with excel, and same as your attention. Thank you so much. I think I will close this question.
madhan ravi
madhan ravi 2018년 9월 4일
Your welcome and don’t close the question.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

릴리스

R2017b

질문:

2018년 9월 3일

댓글:

2018년 9월 4일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by