In a fashion similar to that in Fig. 3.11, write a short program to determine the smallest number, xmin, used on the computer you will be employing along with this book. Note that your computer will be unable to reliably distinguish between zero and a quantity that is smaller than this number.
The figure 3.11 in the text book is the pseudo code that determine that machine epsilon for the binary computer.
Below the mat lab code code which is written in the similar fashion to determine the smallest number X_min
A=1
While (1)
If a<+0,break,end
X min=A;
A=a/2;
End
The execute the above script code,there are following steps:
Get Answers For Free
Most questions answered within 1 hours.