طريقة 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 |