For computers, the machine epsilon s can also be thought of as the smallest number that when added to one gives a number greater than 1. An algorithm based on this idea can be developed as
Step 1: Set ɛ = 1.
Step 2: If 1 + ɛ is less than or equal to 1, then go to Step 5.
Otherwise go to Step 3.
Step 3: ɛ = ɛ/2
Step 4: Return to Step 2
Step 5: ɛ = 2 × ɛ
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.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.