The math Module in Python: 6 Common Calculations You Can Make
howtogeek.com·18h

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...