James Giles wrote:
>
> Kurt W Hirchert <[log in to unmask]> wrote:
> ...
>
> >
> >If such asymmetry is disturbing, use min(spacing(a),spacing(b)) or
> >min(abs(a)*epsilon(a),abs(b)*epsilon(b)) to get a symmetric test.
>
> What ever happened to:
>
> ABS(A-B) <= toler * ABS(A+B)
>
> For a suitably small value of TOLER.
yes, but suitable means dependent on the floating point model: spacing() or epsilon() provide this dependence.
Pierre
--
-----------------------------------------------------------------------
Pierre Hugonnet R&D Data Processing
COMPAGNIE GENERALE DE GEOPHYSIQUE - Paris Processing Centre
1, rue Leon Migaux / 91341 MASSY cedex / FRANCE
phone:(33) 164 47 45 59 fax:(33) 164 47 32 49
email:phugonnet(at)cgg.com (replace (at) by @)
-----------------------------------------------------------------------
The opinions expressed in this message are not necessarily
those of CGG or of Jacques Chirac
-----------------------------------------------------------------------
|