
21 Jun
2005
21 Jun
'05
11:58 a.m.
Gennadiy Rozental wrote:
All of the above should pass, since the algotrithm used:
x and y are close iff:
|x-y| / |x| < tol/100 and |x-y| / |y| < tol/100
Obviosly nothing could be close to zero and rest are failing also.
In that case I find the algorithm to be confusingly named, as in all these cases the test value is 'closer' to zero than the delta. I would not expect closeness to zero (or any other arbitrary number) to affect a general proximity test. AlisdairM