std::acos
De 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. |
</div> </div>
Déclaré dans l'en-tête <cmath>
|
||
float acos( float arg ); |
||
double acos( double arg ); |
||
long double acos( long double arg ); |
||
double acos( Integral arg ); |
(depuis C++11) | |
Calcule l'arc cosinus de
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.
Sommaire |
[modifier] Paramètres
arg | - | valeur du point flottant
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. |
[modifier] Retourne la valeur
Arc cosinus de
arg
en radians dans la plage de radians [0; π]
.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.
Erreur de domaine se produit si
arg
est hors de la plage [-1.0; 1.0]
. NAN est retourné dans ce cas .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.
[modifier] Exemple
#include <cmath> #include <iostream> int main() { std::cout << "The number pi is " << std::acos(-1) << '\n'; }
Résultat :
The number pi is 3.14159
[modifier] Voir aussi
arcsinus calcule (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. (fonction) | |
calcule l'arc tangente (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. (fonction) | |
arc tangente, en utilisant des signes pour déterminer quadrants 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. (fonction) | |
calcule en 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. (fonction) | |
(C++11) |
calcule l'arc cosinus d'un nombre complexe (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. (fonction générique) |
applique la fonction std::acos à chaque élément de 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. (fonction générique) |