File tree Expand file tree Collapse file tree 1 file changed +21
-9
lines changed Expand file tree Collapse file tree 1 file changed +21
-9
lines changed Original file line number Diff line number Diff line change 1
1
# Standard modules used
2
2
from collections import namedtuple
3
- from math import ceil , \
4
- floor , \
3
+ from math import ceil , \
4
+ floor , \
5
+ factorial , \
6
+ pi , \
5
7
sqrt
6
8
from matplotlib import pyplot as plt
7
9
from matplotlib import cm
8
- from numpy import logical_not as lnot
9
- from numpy import minimum as mn
10
- from numpy import maximum as mx
11
- from numpy import array , \
10
+ from random import random
11
+ from scipy import logical_not as lnot
12
+ from scipy import minimum as mn
13
+ from scipy import maximum as mx
14
+ from scipy import array , \
15
+ append , \
12
16
concatenate , \
13
17
copy , \
18
+ cos , \
19
+ delete , \
20
+ dot , \
14
21
empty , \
15
22
linspace , \
23
+ log , \
24
+ log2 , \
25
+ log10 , \
16
26
matrix , \
17
27
meshgrid , \
18
28
ndarray , \
19
29
ones , \
20
30
outer , \
21
31
prod , \
32
+ sin , \
22
33
reshape , \
34
+ tile , \
23
35
transpose , \
24
36
zeros
25
- from numpy .linalg import solve
26
- from random import random
37
+ from scipy .linalg import solve
27
38
from scipy .sparse import spdiags
28
- from scipy .sparse .linalg import bicgstab
39
+ from scipy .sparse .linalg import bicgstab , \
40
+ spsolve
You can’t perform that action at this time.
0 commit comments