Python 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 ဂဏန်းတစ်ခု၏ ဟိုက်ပါဘောလစ်တန်ဂျင့်ကို ကိုယ်စားပြု သည့် တန်ဖိုး |
---|---|
Python ဗားရှင်း- | ၁.၄ |