This preview shows page 1. Sign up to view the full content.
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
This note was uploaded on 11/06/2011 for the course EE 150 taught by Professor Dr.burke during the Fall '08 term at USC.
- Fall '08