Skip to main content

Program to demonstrate the use of math module and use of its various mathematical functions.

· One min read
Kaustubh Kulkarni

Que > Program to demonstrate the use of math module and use of its various mathematical functions.

file.py

import math
print(math.pi)
print(math.e) #Euler's number
print(math.log(10))
print(math.exp(10))
print(math.e**10)
print(math.sqrt(9))
Output
3.141592653589793
2.718281828459045
2.302585092994046
22026.465794806718
22026.465794806703
3.0