x | - |
Bei unzulässigem Argument wird errno
auf EDOM
gesetzt.
Rückgabewert: Hauptwert von arcsin(x) im Bereich [-pi/2, pi/2],
im Fehlerfall NAN
(not a number).
#include <cmath> #include <iostream> int main() { double x = 0.5 * std::sqrt(3); std::cout << "Arcus sinus von " << x << " = " << std::asin(x) << '\n'; }