[ Web Proxy ]
URL:
Viewing: https://fr.cppreference.com/cpp/numeric/valarray/tanh [Back]  [Original]

std::tanh<div class="t-tr-text">(Std :: valarray)<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">(std::valarray)</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div> cppreference.com
cppreference.com
Espaces de noms
Variantes

std::tanh<div class="t-tr-text">(Std :: valarray)<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">(std::valarray)</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div>

De cppreference.com

<metanoindex/>

 
 
Bibliothque Numerics
Fonctions mathmatiques courantes
Virgule flottante environnement
Nombres complexes
Tableaux numriques
La gnration de nombres pseudo-alatoires
Moment de la compilation arithmtique rationnelle (C++11)
Gnriques des oprations numriques
Original:
Generic numeric operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iota (C++11)
accumulate
inner_product
adjacent_difference
partial_sum
 
 
<tbody> </tbody>
Dclar dans l'en-tte <valarray>
template< class T > valarray<T> tanh( const valarray<T>& va );
Pour chaque lment dans va calcule la tangente hyperbolique de la valeur de l'lment .
Original:
For each element in va computes hyperbolic tangent of the value of the element.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Paramtres

va -
tableau de valeurs appliquer l'opration
Original:
value array to apply the operation to
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Retourne la valeur

Tableau de valeurs contenant tangente hyperbolique des valeurs dans va .
Original:
Value array containing hyperbolic tangent of the values in va.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Notes

Fonction sans rserve (tanh) est utilis pour effectuer le calcul. Si cette fonction n'est pas disponible, std::tanh est utilis en raison de l'argument de recherche sous la g .
Original:
Unqualified function (tanh) is used to perform the computation. If such function is not available, std::tanh is used due to argument dependent lookup.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La fonction peut tre mise en uvre avec le type de retour diffrent de std::valarray. Dans ce cas, le type de remplacement a les proprits suivantes:
Original:
The function can be implemented with the return type different from std::valarray. In this case, the replacement type has the following properties:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • Toutes les fonctions de membre de const std::valarray sont fournis .
    Original:
    All const member functions of std::valarray are provided.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • std::valarray, std::slice_array, std::gslice_array, std::mask_array et std::indirect_array peut tre construit partir du type de remplacement .
    Original:
    std::valarray, std::slice_array, std::gslice_array, std::mask_array and std::indirect_array can be constructed from the replacement type.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • Toutes les fonctions acceptant un argument de type de const std::valarray& devrait galement accepter le type de remplacement .
    Original:
    All functions accepting a arguments of type const std::valarray& should also accept the replacement type.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • Toutes les fonctions qui acceptent deux arguments de type de const std::valarray& devrait accepter toutes les combinaisons de const std::valarray& et le type de remplacement .
    Original:
    All functions accepting two arguments of type const std::valarray& should accept every combination of const std::valarray& and the replacement type.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.

Mise en uvre possible

template<class T>
valarray<T> tanh(const valarray<T>& va)
{
    valarray<T> other = va;
    for (T &i : other) {
        i = tanh(i);
    }
}

Exemple

Voir aussi

tangente hyperbolique
Original:
hyperbolic tangent
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction) [edit]

Web Proxy Viewer  |  New URL  |  Original Page