पायथन गणित। लॉग 10 () विधि
उदाहरण
विभिन्न संख्याओं का आधार-10 लघुगणक ज्ञात कीजिए
# Import math Library
import math
# Return the base-10 logarithm
of different numbers
print(math.log10(2.7183))
print(math.log10(2))
print(math.log10(1))
परिभाषा और उपयोग
यह math.log10()
विधि किसी संख्या का आधार-10 लघुगणक लौटाती है।
वाक्य - विन्यास
math.log10(x)
पैरामीटर मान
Parameter | Description |
---|---|
x | Required. Specifies the value to calculate the logarithm for. If the value is 0 or a negative number, it returns a ValueError. If the value is not a number, it returns a TypeError |
टेक्निकल डिटेल
प्रतिलाभ की मात्रा: | एक float मान, किसी संख्या के आधार-10 लघुगणक का प्रतिनिधित्व करता है |
---|---|
पायथन संस्करण: | 2.3 |