Python math.atanh()วิธี การ
ตัวอย่าง
ค้นหาค่าไฮเพอร์โบลิกอาร์กแทนเจนต์ของจำนวนต่างๆ:
#Import math Library
import math
#print the hyperbolic
arctangent of different numbers
print(math.atanh(0.59))
print(math.atanh(-0.12))
ความหมายและการใช้งาน
วิธี การmath.atanh()
ส่งกลับค่าไฮเพอร์โบลิกแทนเจนต์ผกผันของตัวเลข
หมายเหตุ:พารามิเตอร์ที่ส่งผ่านmath.atanh()
ต้องอยู่ระหว่าง -0.99 ถึง 0.99
ไวยากรณ์
math.atanh(x)
ค่าพารามิเตอร์
Parameter | Description |
---|---|
x | Required. A positive or negative number between -0.99 and 0.99. If x is not a number, it returns a TypeError |
รายละเอียดทางเทคนิค
คืนมูลค่า: | ค่า ที่float แทนเจนต์ไฮเปอร์โบลิกแทนเจนต์ผกผันของจำนวน |
---|---|
เวอร์ชันหลาม: | 2.6 |