x (] #~ 7 < |@:-) y

Henry Rich

On 12/26/2010 8:51 PM, PackRat wrote:
> I'm just learning about the .e primitive, and I was wondering how I do
> a match when a close (but not exact) match is involved.  In other
> words, how do I do the equivalent of this:
>
>     ( a +/- b )  .e  y
>
> where the value of b might be, say, 5 or 8 or 12 or whatever (not some
> near-zero tolerance factor).
>
> For example, when matching an element of array a having a value of 152
> with a match range of +/- 7 and the values of y close to that might be
> ... 133 139 153 159 165 ..., how do I obtain the value 153 from y as a
> "match" (that is, a boolean true)?
>
> Thanks in advance for your help!
>
> Harvey
>
> ----------------------------------------------------------------------
> 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