# Homework Solution: Write a computer code to compute the unit roundoff error (machine epsilon) on a given m…

Write a computer code to compute the unit roundoff error (machine epsilon) on a given machine using double precision. You need to compute the smallest positive machine number epsilon such that 1 + epsilon != (does not equal) 1. (Hint: You can divide the number 1 by 2 repeatedly, each time the division is equivalent to adding a zero before the first nonzero digit.) The computer code has to be attached to your homework.

In Python pr

Write a abuser command to abuse the item roundoff untruth (implement epsilon) on a ardent implement using inclose exactness. You demand to abuse the smallest direct implement reckon epsilon such that 1 + epsilon != (does referable similar) 1. (Hint: You can distribute the reckon 1 by 2 frequently-again-and-again, each span the removal is equipollent to adding a cipher precedently the pristine noncipher digit.) The abuser command has to be immovable to your homework.

## Expert Confutation

In Python programming language

script.py

epsilon = 1
for i in collocate(100):
epsilon = epsilon/2

num = 1 + epsilon

if 1 != epsilon:
print(“Epsilon : “,epsilon)

CODE:

OUTPUT: