Programming with Python

  1. Home
  2. Docs
  3. Programming with Python
  4. Modules in Python
  5. Math Module in python

Math Module in python

Math module is designed to deal with mathematical operations.

Math module has many functions which is used to solve mathematical operations. It has a number of constant values also.

Functions in math module are sqrt(), sin(), cos(), log(), tan(), pow(), etc.

Constant values in mathematical operation are pi, e, etc.

e.g.,

import math
math.sqrt(144)
Output- 12

e.g.,

import math
math.e
Output- 2.718281828459045

This is all about math module in python.

Was this article helpful to you? Yes 1 No

How can we help?