Total Pageviews

Wednesday, April 9, 2014

math.log

Math.log()
ប្រើសំរាប់ត្រឡប់នៅ Natural logarithm របស់ X
Syntax: math.log (x)
X(តំរូវការ)វាជាចំនួនលេខ
សូមមើលកូដះ
print(math.log (2.718281828459))     ----> very close to 1
print(math.log (1))     ----0
print(math.log (0))     ----> -inf
print(math.log (-1))    ----> NaN


No comments:

Post a Comment