A6 Calculus II: integration, series and approximation · Practice
Computing functions from series,
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
Write exp_series(x) returning (total, n): the sum of the series for , built term by term, stopping when the term is below 1e-16 times the total; n is the number of terms added after the first. The test uses = 2.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write sin_series(x) that first reduces into with math.remainder(x, 2*math.pi), then sums until the term is below 1e-17 in size. The tests try large arguments.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
About how many decimal digits are lost computing from its alternating series? (Largest term divided by the answer, as a power of ten.)
Check
What does math.remainder(x, 2*math.pi) return for = 13?
Check
Set direct to summed straight from the series at (use exp_series), and better to 1 / exp_series(x)[0], with = 22. The tests check which one is right.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
About how many decimal digits are lost computing from its alternating series?
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 A6