The `math` module in Python provides access to various mathematical functions.
Here’s how you can use it:
1. First, you need to import the module using the following command:
```
import math
```
1. Once the module is imported, you can access various mathematical functions. For instance, you can use `sqrt()` function to compute the square root of a number:
```
import math
print(math.sqrt(25)) # Output: 5.0
```
1. You can use the `pi` constant of the math module as shown below:
```
import math
print(math.pi) # Output: 3.141592653589793
```
1. To find the cosine of a number use `cos()`:
```
import math
print(math.cos(0)) # Output: 1.0
```
1. To calculate the factorial of a number use `factorial()`:
```
import math
print(math.factorial(5)) # Output: 120
```
These are just basic examples. The math module in python provides many other mathematical functions like `sin(), tan(), log(), exp(), pow(), gcd()` etc and constants like `e, tau, inf, nan` etc.
To use them, you simply need to call them as `math.function()` or `math.constant`. If you’re unsure what a function does, you can always use the `help()` function. For instance – `help(math.sin)`.