Lab 4 · Lecture 4 · Errors and Their Propagation

Error Lab

Measure errors, watch cancellation destroy digits, and fix formulas by rewriting them.

Choose an expression and move x. The red curve is the naive formula, the green curve the rewritten one. The vertical axis is the relative error on a log scale: 1e−16 is perfect, 1e0 means every digit is wrong.