Methode Python math.sinh()
Voorbeeld
Vind de hyperbolische sinus van verschillende getallen:
# Import math Library
import math
# Return the hyperbolic sine of different
values
print(math.sinh(0.00))
print(math.sinh(-23.45))
print(math.sinh(23))
print(math.sinh(1.00))
print(math.sinh(math.pi))
Definitie en gebruik
De math.sinh()
methode retourneert de hyperbolische sinus van een getal.
Syntaxis
math.sinh(x)
Parameterwaarden
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic sine of. If the value is not a number, it returns a TypeError |
Technische details
Winstwaarde: | Een float waarde, die de hyperbolische sinus van een getal voorstelt |
---|---|
Python-versie: | 1.4 |