> From: [email protected]
> 
>    isinteger 2x ^. 2x^607
> 1
>    isinteger 2x ^. <: 2x^607
> 1
> 
> The last one I executed should return 0,  not 1
> 
> Any thoughts?

This is because match (-:) does a tolerant comparison by default.
See the dictionary page for match. 

For non-tolerant comparison you can use:

   (-:!.0 <.) 2x ^. <: 2x^16
0

See also:
"http://www.jsoftware.com/jwiki/Essays/Absolute and Relative Tolerance"
"http://www.jsoftware.com/jwiki/Essays/Tolerant Comparison"


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

Reply via email to