asind command returns complex angle. What is the meaning of this?
조회 수: 21 (최근 30일)
이전 댓글 표시
Hi everybody, I am trying to extract an angle from a triangle in degrees and I am using the asind command for this. I need to apply the asind command to values that are more than 1. This results in a complex result e.g. asind(1.0019) returns 90-3.5570i. How can I interpret this value in degrees? thanks
댓글 수: 0
채택된 답변
the cyclist
2012년 5월 22일
When you type
asind(1.0019)
you are asking for the angle (in degrees) whose sine is equal to 1.0019. But no real-valued angle exists whose sine has that value.
The inverse sine for complex numbers can be defined as
f_inverse_sine = @(z)(-i*log(i*z+sqrt(1-z.^2)))
(I've switched over to radians here, but you could multiply the result by 180/pi to get degrees.) MATLAB has simply done the right thing for you in the complex domain.
But, since you are working with triangles, I am guessing you have just made a mistake that ended up with your taking the arcsin of something greater than 1, when you really shouldn't be.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Denoising and Compression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!