Jump Links

Logarithmic and Exponential Functions

It’s a common joke that Python makes a great calculator in its interactive mode. You can make it an even better one with the built-in math module, which contains a lot of the same math functions you would find on a handheld scientific or graphing calculator.

Constants

One useful feature of the Python math module is quick access to mathematical constants. You can make Python more effective as a scientific calculator by using these same functions with numerical approximations. The most famous might be pi (3.14159, etc.). You don’t have to remember all the digits. Python will do it for you.

Let’s call up pi…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help