-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscicalcimod.py
33 lines (28 loc) · 913 Bytes
/
scicalcimod.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# -*- coding: utf-8 -*-
"""
Created on Fri May 20 19:36:58 2022
@author: sneha
"""
import math
def add(a,b):
print("\n\n\t\t\t Sum : ", a+b )
def sub(a,b):
print("\n\n\t\t\t Difference : ", a-b )
def mul(a,b):
print("\n\n\t\t\t Multiply : ", a*b )
def div(a,b):
print("\n\n\t\t\t Division : ", a/b )
def exponent(a,b):
print("\n\n\t\t\t Exponent : ", a**b)
def sindegree(r):
print("\n\t\t\t Sine ", r , "° : %.2f" %math.sin(r))
def cosdegree(r):
print("\n\t\t\t Cos ",r, "° : %.2f" %math.cos(r))
def tandegree(r):
print("\n\t\t\t Tan ",r, "° : %.2f" %math.tan(r))
def factorial(x):
print("\n\t\t\t Factorial of ",x," : ",math.factorial(x))
def log(x):
print("\n\t\t\t Log of ",x," : ",math.log(x))
print("\n\n\n\n\t\t\t SCIENTIFIC CALCULATOR ")
print("\t\t\t --------------------- ")