Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> Python

ฟังก์ชันตรีโกณมิติ (Trigonometric Functions) ใน Python

Python รวมฟังก์ชันต่อไปนี้ที่ดำเนินการคำนวณตรีโกณมิติ:

ลำดับ Function และ Description
1 acos(x)
คืนค่า arc cosine ของ x ในเรเดียน
2 asin(x)
คืนค่า arc sine ของ x ในเรเดียน
3 atan(x)
คืนค่า arc tangent ของ x ในเรเดียน
4 atan2(y, x)
คืนค่า atan(y / x) ในเรเดียน
5 cos(x)
คืนค่า cosine ของ x เรเดียน
6 hypot(x, y)
คืนค่า Euclidean norm, sqrt(x*x + y*y)
7 sin(x)
คืนค่า sine ของ x เรเดียน
8 tan(x)
คืนค่า tangent ของ x เรเดียน
9 degrees(x)
แปลงมุม x จากเรเดียนเป็นองศา
10 radians(x)
แปลงมุม x จากองศาเป็นเรเดียน