طريقة Python cmath.cos ()
مثال
أوجد جيب التمام لعدد مركب:
#import cmath for complex number operations
import cmath
#find
the cosine of a complex number
print (cmath.cos(2 + 3j))
التعريف والاستخدام
تُرجع cmath.cos()
الطريقة جيب التمام لعدد مركب.
بناء الجملة
cmath.cos(x)
قيمه المعامل
Parameter | Description |
---|---|
x | Required. A number to find the cosine of |
تفاصيل تقنية
قيمة الإرجاع: | قيمة complex تمثل جيب التمام لعدد مركب |
---|---|
نسخة بايثون: | 1.5 |