Méthode Python math.asinh()

Python math 模块Module math de Python

Python math.asinh(x)Renvoie le sinus hyperbolique inverse de x.

Version de Python : 2.6

Syntaxe

La syntaxe de la méthode math.asinh() est la suivante :

math.asinh(x)

Description des paramètres :

  • x-- Obligatoire, un nombre positif ou négatif. Si x n'est pas un nombre, renvoie TypeError.

Valeur de retour

Renvoie un float représentant le sinus hyperbolique inverse d'un nombre.

Exemple

L'exemple suivant renvoie le sinus hyperbolique inverse de différents nombres :

Exemple

# Importer le module math
import math

# Afficher la valeur du sinus hyperbolique inverse
print(math.asinh(7))
print(math.asinh(56))
print(math.asinh(2.45))
print(math.asinh(1))

Sortie :

2.644120761058629
4.718578581151767
1.6284998192841909
0.881373587019543

Python math 模块Module math de Python

Autres extensions