std::acos
Aus cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
definiert in Header <cmath>
|
||
float acos( float arg ); |
||
double acos( double arg ); |
||
long double acos( long double arg ); |
||
double acos( Integral arg ); |
(seit C++11) | |
Berechnet Arkuskosinus
arg
Original:
Computes arc cosine of
arg
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Inhaltsverzeichnis |
[Bearbeiten] Parameter
arg | - | Floating-Point-Wert
Original: floating point value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[Bearbeiten] Rückgabewert
Arkuskosinus
arg
im Bogenmaß im Bereich von [0; π]
Bogenmaß .Original:
Arc cosine of
arg
in radians in the range of [0; π]
radians.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Domain-Fehler tritt auf, wenn
arg
außerhalb des Bereichs [-1.0; 1.0]
ist. NAN wird in diesem Fall wieder .Original:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[Bearbeiten] Beispiel
#include <cmath> #include <iostream> int main() { std::cout << "The number pi is " << std::acos(-1) << '\n'; }
Output:
The number pi is 3.14159
[Bearbeiten] Siehe auch
berechnet Arcussinus (arcsin(x)) Original: computes arc sine (arcsin(x)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) | |
berechnet Arcustangens (arctan(x)) Original: computes arc tangent (arctan(x)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) | |
Arcustangens mit Schildern Quadranten bestimmen Original: arc tangent, using signs to determine quadrants The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) | |
berechnet Cosinus (cos(x)) Original: computes cosine (cos(x)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) | |
(C++11) |
berechnet Arcuscosinus einer komplexen Zahl (arccos(z)) Original: computes arc cosine of a complex number (arccos(z)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktions-Template) |
wendet die Funktion std::acos auf jedes Element valarray Original: applies the function std::acos to each element of valarray The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktions-Template) |