Here is another  WOW !

   f=: 13 :'x*y'
   f
*
   f/1 2 3 4 5 6 7
5040
   */1 2 3 4 5 6 7
5040
   !7
5040

Sometimes the little surprises are amazing.

Now how about Fibonacci ----

Linda


-----Original Message-----
From: programming-boun...@jsoftware.com 
[mailto:programming-boun...@jsoftware.com] On Behalf Of Björn Helgason
Sent: Tuesday, January 03, 2012 5:50 AM
To: Programming forum
Subject: Re: [Jprogramming] Binary representation without #: or #.

   f/ 5 4 3 2 1
x
2
y
1
x
3
y
2
x
4
y
6
x
5
y
24
120

2012/1/2 Kip Murray <k...@math.uh.edu>

> Linda, Björn has a wonderful answer for your problem as I understood it.
>  Here is another example.  Suppose
>
>    f =: 4 : 'x * y'
>
> Then f/ 5 4 3 2 1 is 5 f 4 f 3 f 2 f 1 so
>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to