[Jprogramming] rank trouble
Linda Alvord
lindaalvord at verizon.net
Sat Jun 2 17:23:45 HKT 2012
pi=: 3 1 4 1 5 9 2 6 5
e=: 2 7 1 8 2 8 1 8 3
pi (]-.]-.[) e
2 1 2 1 3
e ([ -. -.) pi
2 1 2 1 3
Since there is only one 2 in the nine digits of pi , isn't the only
correct one?
e (]-.]-.[) pi
3 1 1 2
Linda
-----Original Message-----
From: programming-bounces at jsoftware.com
[mailto:programming-bounces at jsoftware.com] On Behalf Of Alexander Mikhailov
Sent: Friday, June 01, 2012 1:35 PM
To: programming at jsoftware.com
Subject: Re: [Jprogramming] rank trouble
-----
Without the "nub" gives an arguably more correct answer:
pi (]-.]-.[) e
2 1 2 1 3
e (]-.]-.[) pi
3 1 1 2
-----
Why not
e ([ -. -.) pi
2 1 2 1 3
?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list