A5 Calculus I: change and accumulation · Practice
Lab: integrating data
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.
Check
A current reads 0 A, then 2 A after 0.2 s, then 3 A after a further 0.5 s. What charge passed?
Write units the way you normally would: 1.5 C, 1500 mC and 0.0015 kC are the same answer.
Check
A unit sine wave is clipped at 0.7. What is its RMS?
Check
Write trap_xy(x, y) for samples at uneven times. Set Q to the charge in the starter's current log number k = 1.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write auto_trap(f, a, b, tol): start with 1 slice, double the number of slices until two successive trapezoid results differ by less than tol, and return (estimate, n), where the estimate is the Richardson value and n the larger slice count. Set r = auto_trap(lambda x: math.exp(-x*x), 0, 1, tol).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Sample one period of a unit sine clipped at Ac = 0.7 with 2001 points, and set rms to its RMS using Simpson's rule on . Set exact from the mean-square formula in the reading.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Trapezoids: 0, 0.52, 0.16 with widths 0.22 and 0.69?
Check
RMS of a unit sine clipped at 0.42?
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 A5