C3 AC circuits · Practice
Code lab
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 5 kinds solid
Check
Compute the gain in dB of an RC low-pass (R = 2200 Ω, C = 2.2 × 10⁻⁸ F) at 400 log-spaced frequencies from 10 Hz to 1 MHz, and set f_3db to the −3 dB frequency, found by interpolating the computed curve.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
For the same kind of filter (R = 1000 Ω, C = 4.7 × 10⁻⁸ F), set phase_at to the phase in degrees at 100 times the corner frequency, and gain_at to the gain in dB there. Compute them from directly at that one frequency.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
What corner should the lab find for R = 1 kΩ and C = 10 nF?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
np.logspace(1, 4, 500): what ratio separates neighboring values?
Check
np.abs(H) is 0.1. What is 20*np.log10(np.abs(H))?
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 C3