sin_cos_hyperbolicus.py 538 B

123456789101112131415161718192021
  1. #Importieren des Math-Moduls
  2. import math
  3. #Definition der Variabel
  4. wert = -2
  5. #Definition der Funktionen
  6. def sinh(wert):
  7. while wert <= 2:
  8. print("sinh(" + str(wert) + ") = " + str(math.sinh(wert)))
  9. wert = wert + 1
  10. def cosh(wert):
  11. while wert <= 2:
  12. print("cosh(" + str(wert) + ") = " + str(math.cosh(wert)))
  13. wert = wert + 1
  14. #Durführung der Funktionen
  15. sinh(wert) #Sinuns hyperbolicus Funktion
  16. print("") #Leerzeile zur besseren Übersicht
  17. cosh(wert) #Cosinus hyperbolicus Funktion