अजगर cmath.log10 () विधि
उदाहरण
एक सम्मिश्र संख्या का आधार-10 लघुगणक ज्ञात कीजिए:
#Import cmath Library
import cmath
#print base-10 log value of
complex numbers
print (cmath.log10(2+ 3j))
print (cmath.log10(1+ 2j))
परिभाषा और उपयोग
यह cmath.log10()
विधि किसी सम्मिश्र संख्या का आधार-10 लघुगणक लौटाती है।
ऋणात्मक वास्तविक अक्ष के अनुदिश 0 से -∞ तक, ऊपर से निरंतर एक शाखा कटी हुई है।
वाक्य - विन्यास
cmath.log10(x)
पैरामीटर मान
Parameter | Description |
---|---|
x | Required. Specifies the value to calculate the base-10 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 |
टेक्निकल डिटेल
प्रतिलाभ की मात्रा: | एक complex मान, किसी संख्या के आधार-10 लघुगणक का प्रतिनिधित्व करता है |
---|---|
पायथन संस्करण: | 1.5 |