पायथन math.cos () विधि
उदाहरण
विभिन्न संख्याओं की कोज्या ज्ञात कीजिए:
# Import math Library
import math
# Return the cosine of
different numbers
print (math.cos(0.00))
print (math.cos(-1.23))
print (math.cos(10))
print (math.cos(3.14159265359))
परिभाषा और उपयोग
यह math.cos()
विधि किसी संख्या की कोज्या लौटाती है।
वाक्य - विन्यास
math.cos(x)
पैरामीटर मान
Parameter | Description |
---|---|
x | Required. A number to find the cosine of. If the value is not a number, it returns a TypeError |
टेक्निकल डिटेल
प्रतिलाभ की मात्रा: | एक float मान, -1 से 1 तक, कोण की कोज्या का प्रतिनिधित्व करता है |
---|---|
पायथन संस्करण: | 1.4 |