Unformatted text preview: if a == theoret disp('The cube root is:'); disp(a) %This is for the case when your guess "a" is not equal to the cube root. else while (abs(a - theoret)/theoret) > (10^-8); a = (1/3)*(2*a + b/a^2); disp(a) end end end...
View Full Document
- Fall '08
- Equals sign, Inflection, relational operator, disp