Méthode Python math.sinh()

Python math 模块Module math de Python

Python math.sinh(x)Renvoie le sinus hyperbolique de x.

Version de Python : 1.4

Syntaxe

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

math.sinh(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 d'un nombre.

Exemple

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

Exemple

# Importer le package math
import math

# Afficher la valeur du sinus hyperbolique
print(math.sinh(0.00))
print(math.sinh(-23.45))
print(math.sinh(23))
print(math.sinh(1.00))
print(math.sinh(math.pi))

Sortie :

0.0
-7641446994.979367
4872401723.124452
1.1752011936438014
11.548739357257746

Python math 模块Module math de Python

Autres extensions