طريقة بايثون math.cosh ()
مثال
أوجد جيب التمام الزائدي لأرقام مختلفة:
# Import math Library
import math
# Return the hyperbolic cosine of
different numbers
print (math.cosh(1))
print (math.cosh(8.90))
print (math.cosh(0))
print (math.cosh(1.52))
التعريف والاستخدام
تُرجع math.cosh()
الطريقة جيب التمام الزائدي لرقم (ما يعادل (exp (number) + exp (-number)) / 2).
بناء الجملة
math.cosh(x)
قيمه المعامل
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic cosine of. If the value is not a number, it returns a TypeError |
تفاصيل تقنية
قيمة الإرجاع: | قيمة float تمثل جيب التمام الزائدي لرقم |
---|---|
نسخة بايثون: | 1.4 |