Python cmath.tanh() နည်းလမ်း
ဥပမာ
ရှုပ်ထွေးသောနံပါတ်တစ်ခု၏ ဟိုက်ပါဘောလစ်တန်ဂျင့်ကို ရှာပါ-
#Import cmath Library
import cmath
#Return the hyperbolic tangent
of a complex number
print (cmath.tanh(2 + 3j))
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
cmath.tanh()
နည်းလမ်းသည် ရှုပ်ထွေးသောနံပါတ်တစ်ခု၏ ဟိုက်ပါဘောလစ်တန်ဂျင့်ကို ပြန်ပေးသည် ။
အထားအသို
cmath.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 |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | complex ရှုပ်ထွေးသောနံပါတ်တစ်ခု၏ ဟိုက်ပါဘောလစ်တန်ဂျင့်ကို ကိုယ်စားပြု သည့် တန်ဖိုး |
---|---|
Python ဗားရှင်း- | ၁.၅ |