Find the natural logarithm of different numbers
# Import math Library
import math
# Return the natural logarithm of different numbers
print(math.log(2.7183))
print(math.log(2))
print(math.log(1))
Try it Yourself » Definition and UsageThe math.log()
method returns the natural logarithm of a number, or the logarithm of number to base.
float
value, representing the natural logarithm of a number, or the logarithm of number to base Python Version: Changed in version 2.3 Change Log: The base parameter was added
Track your progress - it's free!
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4