While Loop I
Example: 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.
The solution can be the following:
P=27; % the cubic root of this number
fprintf('The cube root of %2.2f is %2.2f\n',P,xnew);
to the email by Wednesday.