Lecture 25 The While Loop
Tutorial:
Tasks:
1. Suppose your requirement is to approximate Pi to 8 digits, which means the error goal is 1e-8. Use the following function to calculate how many loops can reach the error goal.
2.