Let's suppose that I have some low precision floating point numbers:

   require 'dll'
   PIs=: _1 fc a.{~ 219 15 73 64 220 15 73 64 218 15 73 64
   PIs
3.14159 3.14159 3.14159

I would like to be able to recognize that some of these values are
close to each other
   i.!.3e_7~ PIs
|domain error

I can't use comparison tolerance on i. for this purpose, because i.
throws a domain error when I try to specify the precision I want to
use.

I also can't use ": because I can't rely on the numbers not being "off
by one" when formatted -- but I can rely on them being close enough
that if they were slightly different they would format the same.

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to