Easily addressed; however, this gets into the issue of comparison tolerance.
I would think that it would depend on the problem being addressed as to
whether 1j1e_14 is complex or real.

real=:(]-:!.0+) :: 0:

On Fri, Oct 8, 2010 at 5:03 PM, Devon McCormick <devon...@gmail.com> wrote:

> It's not clear which behavior he would want here:
>
>   isReal=: 0 *./ .= [: {:"1@:+. ,
>   real=:(]-:+) :: 0:
>
>   (isReal,real) 1j1e_14
> 0 1
>
> On Fri, Oct 8, 2010 at 5:53 PM, Don Guinn <dongu...@gmail.com> wrote:
>
> > I like:
> >
> > real=:(]-:+) :: 0:
> >
> >
> --
> Devon McCormick, CFA
> ^me^ at acm.
> org is my
> preferred e-mail
> ----------------------------------------------------------------------
> 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