[Jprogramming] What's in a noun?
Roger Hui
rogerhui.canada at gmail.com
Wed Jan 22 17:58:55 UTC 2014
You have found an Easter egg!
lr=: 3 : '5!:5<''y'''
lr 3+4*i.100
3+4*i.100
lr 3 5 7 9 11 13 15 17 19
3+2*i.9
lr (1e6$'J'),'J'
1000001$'J'
lr ;:'Fire is catching. If we burn, you burn with us!'
<;._1 ' Fire is catching. If we burn , you burn with us !'
etc.
The limit error is in the computation to produce 5!:5<'A'
On Wed, Jan 22, 2014 at 9:38 AM, Ben Gorte - CITG <B.G.H.Gorte at tudelft.nl>wrote:
> Hi,
>
> It's nothing to worry about, but the other day I stumbled at something
> like this:
>
> A=: (i.12)+(2*i.12)+i.12
> A&*
> (4*i.12)&*
>
> Never mind my two input lines - I was surprised, however, by the third
> (the output).
> Or shouldn't I be?
>
> Then I found:
> 5!:5 < 'A'
> 4*i.12
>
> but still...
>
> Here it's already an advantage:
> A=. i.1e6
> 5!:5 < 'A'
> i.1000000
>
> But then I'd say this could also work:
> A=. i.1e8
> 5!:5 < 'A'
> |limit error
>
> (I'm using 32bit)
>
> Greetings,
> Ben
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
More information about the Programming
mailing list