acos(x) returns complex values. Why do they describe ?

17 ビュー (過去 30 日間)
Antoine Schnetz
Antoine Schnetz 2020 年 9 月 27 日
編集済み: Ameer Hamza 2020 年 9 月 27 日
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 ?

採用された回答

Ameer Hamza
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 件)

カテゴリ

Help Center および File ExchangeGraph and Network Algorithms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by