[Jprogramming] Real Array
Dan Bron
j at bron.us
Sat Oct 9 05:22:29 HKT 2010
0 = {:@+. is the obvious test. I'm sure there are more efficient methods leveragng complex arithmetic.
Note this is one of the phrases where the difference btwn @ and @: is relevant, and the former is what we want, as opposed to the more common latter.
Check out load 'validat' (no e). Or open the script.
-Dan
Please excuse typos; composed on a handheld device.
-----Original Message-----
From: Kip Murray <km at math.uh.edu>
Sender: programming-bounces at jsoftware.com
Date: Fri, 08 Oct 2010 15:48:12
To: <programming at jsoftware.com>
Reply-To: Programming forum <programming at jsoftware.com>
Subject: [Jprogramming] Real Array
Is there a way to test whether an array is real, i.e., numeric and not
imaginary, without using 3!:0 ? Where are such tests found? --Kip Murray
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list