Posted by **apoorva** on Wednesday, April 16, 2008 at 10:11pm.

design and implement such a function and use it in a program called part3.c that allows someone to enter two real numbers and an epsilon value (also a real number) and reports if the two numbers are equal (+/- epsilon) or not.

If you were asked this question, how would you try to understand this question;

This is how I looked at it;

I'm asked for two real numbers and an epsilon number.

for example, 5 and 6. epsilon is then 2.

So when I compile my program, my program will do this: 5+2 and 5-2 which is 7 and 3

and 6+2 and 6-2 which is 8 and 4.

Then the result I would have program say would be: No, this is not equal.

Am I reading this right, please help

- how to understand this -
**bobpursley**, Wednesday, April 16, 2008 at 11:07pm
no, I don't think you are reading it correctly

Here is the logic a,b real numbers, e is some real number.

IF abs(a-b)<=e then YES

otherwise NO

## Answer This Question

## Related Questions

- C programming, not C++ - design and implement such a function and use it in a ...
- programming - Step 1: Design a flowchart or write pseudocode for a program that ...
- math - Find the domain and range for y=x^2+9. Is the answer all real numbers? ...
- Real Analysis - Let a be a real number and let m, n be natural numbers such that...
- Programming - Design and plan the logic for a program that prompts the user for ...
- algebra - true or false 1. fraction cant be written as decimal. 2. natural ...
- Math Check Pleas Thank You - 1. Which of the following numbers is an example of ...
- Algebra 2 - 3. Identify the vertex and the axis of symmetry of the graph of the ...
- Math - TRUE OR FALSE ? Justify your answer. a. There exist real numbers a and b ...
- math - 1. Which of the following numbers is an example of an integer? a. -15 b. ...

More Related Questions