Question: print a code using C language 3. Epsilon We know that C data types float and double can not represent all real data. We can

 print a code using C language 3. Epsilon We know that
print a code using C language

3. Epsilon We know that C data types float and double can not represent all real data. We can intuitively recognize that there are some small value epsilon that make x to be same as x + epsilon. We know the epsilon is not a constant but depending on the data type and value. Write a C program to find the epsilon as 2" for some integer n when the base x is 0.1, 1.0, 10.0, 100.0, 1000.0 and when the base x is in float type or double type. For example, consider what you will get by adding 7.0E-15 to 100.0. You will print a right-aligned table to show the epsilons depending on the base value (row) and data type (column)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!