acos(x) returns complex values. Why do they describe ?
조회 수: 17 (최근 30일)
이전 댓글 표시
In my code the acos function returns complex values because my input x is not in range [-1 1]. But why do these complex values describe ?
댓글 수: 0
채택된 답변
Ameer Hamza
2020년 9월 27일
편집: Ameer Hamza
2020년 9월 27일
But why do these complex values describe?
To understand this, you need to study calculus. This is not just limited to cos(), all trigonometric functions exhibit this behaviour. In short, the domain of trigonometric functions can be extended to the complex plane, in which case the range of those functions will also span the complex plane (instead of usual [-1, 1]). The following are some links to show how trigonometric functions and complex numbers are interconnected
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!