Question: MATLAB exercise for console session For computers the machine epsilon can also be thought of as the smallest number that when added to one gives

MATLAB exercise for console session For computers the machine epsilon can also be thought of as the smallest number that when added to one gives a number greater than one. An algorithm based on this idea can be developed as: Step 1: Set epsilon = 1. Step 2: If 1 + epsilon is equal to 1, then go to Step 5. Otherwise go to Step 3. Step 3: epsilon = epsilon/2. Step 4: Return to Step 2. Step 5: epsilon = 2 x epsilon. Write your own M-file based on this algorithm to determine the machine epsilon. Validate the result by comparing it with the value computed with the built-in function eps. Use comments in your code to identify each step in the process. Hints: Matlab displays values to 4 decimal places by default. For this task it is convenient to display all digits of our double precision floating point numbers. To achieve this type format long as your first line of code. Your M-file will require a loop structure. (18 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
