Lab 1 · Lecture 1 · Why Numerical Methods?

Iteration Lab

Run your first numerical methods: watch digits appear, then write and change the loops yourself.

Pick any positive N and a starting guess. Each step averages x and N/x. Watch the correct digits column: it roughly doubles every step.

Try this: N = 10 with x₀ = 1; N = 2 with x₀ = 1000 (a terrible guess: how many extra steps?); N = 0.0001.