I wrote:
> Or I will -- but first I want some assurance that the effort is
> needed.
Maybe that's unreasonable.
Here's a J expression which determines if value is _.
isIndeterminate=:3 :0"0
rep=.2(3!:1)y
typ=.256#.a.i.rep{~8+i.8
if.8~:typ do.0 return.end.
bit=.(+/\1 12 e.~i.64) </. ,(8$2)#:a.i._8{.rep
(*./1{::bit) *. +./2{::bit
)
If you care about complex valued indeterminates, you could add above
the if. statement another statement reading:
if.16=typ do.+./isIndeterminate+.y return.end.
But I doubt they exist in current versions of J:
_.,1j1
0 1j1
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm