-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSciPy.py
More file actions
55 lines (33 loc) · 751 Bytes
/
Copy pathSciPy.py
File metadata and controls
55 lines (33 loc) · 751 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
from scipy import cluster
import scipy
#help(cluster)
#scipy.info(cluster)
#help()
#special functions
from scipy import special
a=special.exp10(4)
print(a)
#getting the sin value
c=special.sindg(45)
print(c)
#intergrations
from scipy import integrate
i = scipy.integrate.quad(lambda x:x*2 + 4,2,6)
print(i)
#fourirer tranformations
from scipy.fftpack import fft,ifft
import numpy as np
x = np.array([1,2,3,4,5])
#fourier tarnform
y = fft(x)
print(y)
#inverse fourier tranform
z=ifft(x)
print(z)
#liner algebra / finfind the inverse matrix
from scipy import linalg
a = np.array([(1,2),(4,5)])
b= linalg.inv(a)
print(b)
#interpolation functions
#from scipy import interpolate