The actual test as I implemented it uses 1.0-ct rather than ct and is ever
so slightly different at the extremes of the tolerance interval but ever so
much faster. See the TEQ macro for details.

Henry Rich

On Fri, Sep 16, 2022, 1:34 PM Raul Miller <[email protected]> wrote:

>
> https://code.jsoftware.com/wiki/Essays/Tolerant_Comparison#Model_of_Tolerant_Equal
>
> Today I stumbled over an issue where the tolerant equality implemented
> in J no longer matches the documentation on tolerant equality.
>
>    ct=: 9!:18''
>    teq=: {{|@- <:!.0 m * >.&|}}("0)
>    (=/ -: ct teq/)~1+ct*i.10
> 0
>
> Does anyone know why this discrepancy exists?
>
> Thanks,
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to