Unformatted text preview: execution.-The syntax is nearly identical to an if-statement-Variable in logical expression must be changed in code otherwise it will never end. a=1; while a<10 disp(‘a<10’) a=a+1; end Using “greater than” for the idea of until while error >= 0.01 % calculate another iteration of % the square root % recalculate error end ICA on square root Don’t check for equality of computed quantities p.103-106: ex1 on p.105...
View Full Document
- Spring '07
- Imperative programming, Executable, logical expression