Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double a, b;
- double diff = a -b;
- if (abs(diff)/(abs(a) + abs(b)) < EPSILON)
- my_diff = 0;
- else
- my_diff = sqrt(diff)
- double diff = a-b;
- if (diff <= 0)
- my_diff = 0;
- else
- my_diff = sqrt(diff);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement