Math Library Function.py

from math import*

print("Enter Two Number :: ")
a = int(input())
b = int(input())

print("Maximum Number :: ", max(a, b))
print("Minimum Number :: ", min(a, b))
print("Absolute Value :: ", abs(-a))
print("a to the power b is :: ", int(pow(a, b)))
print("Squart Root of a :: ", sqrt(a))
print("Factorial of a :: ", factorial(a))
print("GCD of a and b :: ", gcd(a, b))
print("b divided by a Remainder is :: ", remainder(b, a))
print("b divided by a Remainder is :: ", fmod(b, a))
print("Value of Pi :: ", pi)
print("log10 of a :: ", log10(a))
print("log2 of a :: ", log2(a))
print("Sin() value of a :: ", sin(a))
print("cos() value of a :: ", cos(a))
print("tan() value of a :: ", tan(a))
print("log base a and value of b :: ", log(b, a))

print("\nEnter Two Float Number :: ")
a = float(input())
b = float(input())

print("Round Value of a :: ", round(a))
print("Floor Value of b :: ", floor(b))
print("Ceilling Value of a :: ", ceil(a))
print("Mathematical Constant e :: ", e)
print("exponantial of a :: ", exp(a))

Comments