-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogaritmic.py
More file actions
66 lines (53 loc) · 968 Bytes
/
logaritmic.py
File metadata and controls
66 lines (53 loc) · 968 Bytes
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
"""x=int(input("Enter Value of x you need to put in the log"))
y=x-1
z=y+1
sum=x
sum=sum -((x**2)/2)
sum=sum +((x**3)/3)
sum=sum -((x**4)/4)
sum=sum +((x**5)/5)
sum=sum -((x**6)/6)
sum=sum +((x**7)/7)"""
"""x=int(input("Enter Value of x you need to put in the log"))
y=x-1
z=y+1
n=1
i=2
sum=x
while i<20:
A=((-1**n))
B=((x**i))
C=B/i
D=A*C
sum=sum+D
n=n+1
i=i+1
if i==20:
print(sum)
break"""
"""#Expansion of Sinx
x=eval(input("Enter number x whose value is to be find using sin(x)"))
e=1
add=x
i=3
while i<20:
A=(-1**e)
B=(x**i)
n=i
g=1
sum=1
while g<=n:
sum=sum*g
g=g+1
if g>n:
continue
C=B/sum
D=A*C
add=add+D
e=e+1
i=i+2
if i>20:
print(add)"""
import math
a=eval(input("Enter the value to put inside sin function to print as Radians"))
x=print(math.sin(a))