Python math.tan ()เมธอด
ตัวอย่าง
ค้นหาแทนเจนต์ของจำนวนต่างๆ (มุม):
# Import math Library
import math
# Return the tangent of
different numbers
print (math.tan(90))
print (math.tan(-90))
print
(math.tan(45))
print
(math.tan(60))
ความหมายและการใช้งาน
วิธี การmath.tan()
ส่งคืนแทนเจนต์ของตัวเลข
ไวยากรณ์
math.tan(x)
ค่าพารามิเตอร์
Parameter | Description |
---|---|
x | Required. A number to find the tangent of. If the value is not a number, it returns a TypeError |
รายละเอียดทางเทคนิค
คืนมูลค่า: | ค่าfloat แทนเจนต์ของตัวเลข |
---|---|
เวอร์ชันหลาม: | 1.4 |