طريقة بايثون math.acos ()
مثال
إعادة جيب التمام القوسي للأرقام المختلفة:
# Import math Library
import math
# Return the arc cosine
of numbers
print(math.acos(0.55))
print(math.acos(-0.55))
print(math.acos(0))
print(math.acos(1))
print(math.acos(-1))
التعريف والاستخدام
تُرجع math.acos()
الطريقة قيمة جيب التمام القوسي لرقم.
ملاحظة: يجب أن تقع المعلمة التي تم تمريرها math.acos()
بين -1 إلى 1.
نصيحة: math.acos(-1)
سيعيد قيمة PI.
بناء الجملة
math.acos(x)
قيمه المعامل
Parameter | Description |
---|---|
x | Required. A number in the range -1 to 1. If x is not a number, it returns a TypeError |
تفاصيل تقنية
قيمة الإرجاع: | قيمة float تمثل قوس جيب التمام لعدد |
---|---|
نسخة بايثون: | 1.4 |