Sparse arrays also permit similar fun and games. For example: */ $ 1$.1023$2 8.98847e307
*/ $ 1$.1024$2 _ ----- Original Message ----- From: Dan Bron <[email protected]> Date: Thursday, October 22, 2009 21:34 Subject: Re: [Jgeneral] Advantages of using J in 64 bit OS To: General forum <[email protected]> > I wrote: > > I typed +/i.1e8 and had an answer back > in less > > than a breath. > > > > I am impressed. > > Furthermore, I just created an array of rank > 2^28 : > > a > =. 1 $~ 1 #~ 2^28 > > > #...@$ a > 268435456 > > 2 > ^. #...@$ a > 28 > > How many languages can do > that? I bet you could play a lot of fun tricks > with ranks like that. > > > secrets =. 'secret data' > > 3 > {. secret_binary =. (8#2) #: a. i. secrets > 0 1 1 1 0 0 1 1 > 0 1 1 0 0 1 0 1 > 0 1 1 0 0 0 1 1 > > , > secret_binary 0 1 1 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 1 0 0 0 1 1 ... > > 'x' > $~ , secret_binary > > shh > =. 'x' $~ , secret_binary > > > shh NB. Nobody here.... > > > $ shhh > 0 1 1 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 1 0 0 0 1 1 ... > > a. > {~ 2 #. _8 ]\ $ shhh > secret data > > -Dan c ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
