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!