acos(x) returns complex values. Why do they describe ?
17 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Antoine Schnetz
am 27 Sep. 2020
Bearbeitet: Ameer Hamza
am 27 Sep. 2020
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 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 27 Sep. 2020
Bearbeitet: Ameer Hamza
am 27 Sep. 2020
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Graph and Network Algorithms finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!