A7 Linear algebra · Practice
Lab: vectors and matrices in NumPy
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
0 solved
0 in a row
0 of 6 kinds solid
Check
A = np.array([[a, 2], [3, b]]) with = 2, = 1. What is (A @ A)[0, 1]?
Check
One section has 1 kΩ in series and 0.5 mS in shunt. What is its open-circuit gain?
Check
Write series(Z) and shunt(Y) returning transmission matrices, and ladder_gain(n) returning the open-circuit gain of n sections of 1000 Ω in series then 0.001 S in shunt. Set gain = ladder_gain(n) for = 3.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write shoelace(P) returning the area of a polygon whose corners are the columns of a 2 × k array. Map the unit square's corners with ( = 2, = 1) and set area = shoelace(M @ square).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
(A @ A)[0, 1] for A = [[a, 2], [3, b]] with = 4, = 1?
Check
Open-circuit gain of 0.52 kΩ series, 0.16 mS shunt?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in A7