Skip to content

Commit 74b0a77

Browse files
author
Bojan Niceno
committed
Included more functions, such as "factorial", "pi", "sin", "cos", "tile" and a few others.
1 parent 8b5dc12 commit 74b0a77

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

PYTHON/standard.py

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,40 @@
11
# Standard modules used
22
from collections import namedtuple
3-
from math import ceil, \
4-
floor, \
3+
from math import ceil, \
4+
floor, \
5+
factorial, \
6+
pi, \
57
sqrt
68
from matplotlib import pyplot as plt
79
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, \
1216
concatenate, \
1317
copy, \
18+
cos, \
19+
delete, \
20+
dot, \
1421
empty, \
1522
linspace, \
23+
log, \
24+
log2, \
25+
log10, \
1626
matrix, \
1727
meshgrid, \
1828
ndarray, \
1929
ones, \
2030
outer, \
2131
prod, \
32+
sin, \
2233
reshape, \
34+
tile, \
2335
transpose, \
2436
zeros
25-
from numpy.linalg import solve
26-
from random import random
37+
from scipy.linalg import solve
2738
from scipy.sparse import spdiags
28-
from scipy.sparse.linalg import bicgstab
39+
from scipy.sparse.linalg import bicgstab, \
40+
spsolve

0 commit comments

Comments
 (0)