Solving Equations
Many equations in science have no formula for their solution. In this course the computer solves them. You find a bracket with a change of sign, write the bisection method, and then Newton's method, which doubles the number of correct digits at every step, and learn when each of them fails. You work with polynomials in NumPy, with polyval, roots and polyfit, fit a straight line to measurements and judge the fit, and solve systems of linear equations with matrices, including a circuit with three unknowns. A project uses brentq and curve_fit from SciPy to fit the decay of a radioactive sample, and finds its half-life with an uncertainty. The practice runs your code and tells you which results are wrong.