programming-examples/python/Math/Square root and exponential of a given decimal number.py

4 lines
143 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
from decimal import *
x = Decimal('1.44')
print("Square root of ",x, " is :", x.sqrt())
print("exponential of ",x, " is :", x.exp())