diff options
Diffstat (limited to '182/CH5/EX5.6/exampke5_6.sce')
-rwxr-xr-x | 182/CH5/EX5.6/exampke5_6.sce | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/182/CH5/EX5.6/exampke5_6.sce b/182/CH5/EX5.6/exampke5_6.sce index f0231db72..12404e51a 100755 --- a/182/CH5/EX5.6/exampke5_6.sce +++ b/182/CH5/EX5.6/exampke5_6.sce @@ -1,4 +1,3 @@ - // example 5-6 in page 133 clc; //Given data @@ -6,7 +5,7 @@ clc; // for less than 1% error count>=100 n=6; N=0; -while(N<100) +while(N<100) N=(2^n)-1;//count value if(N<100) n=n+1;//increment n and check weather N has exceeded 100 |