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