It is the first definition I've seen of the Fibonacci series which allows an
explicit verb to be translated into a tacit expression.    
 
   
   f=: 13 :'% 1 +. (+%)/\ y $ 1x'
 
  f 7
1 1 2 3 5 8 135
  
   f
[: % 1 +. [: (+ %)/\ 1x $~ ]
   
5!:4 <'f'
   
   5!:4 <'f'

  -- [:                         
  +- %                          
  │    -- 1                     
--+    +- +.                    
  │    │    -- [:               
  L----+    │               -- +
       │    +- \ --- / -----+- %
       L----+                   
            │     -- 1x         
            L-----+- ~ --- $    
                  L- ]          
   

Thus I would think it would be the way I would introduce the seroes to a
high school class
 which was studying J.

Linda

-----Original Message-----
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Raul Miller
Sent: Thursday, February 20, 2014 9:55 PM
To: Programming forum
Subject: Re: [Jprogramming] What does this do?

It also can help to think about this if you realize that adjacent numbers
in the fibonacci sequence are relatively prime.

Thanks,

-- 
Raul


On Thu, Feb 20, 2014 at 9:04 PM, elton wang <ahala2...@yahoo.com> wrote:

> Two building blocks are needed for this: one is you already know the
> relationship of continued fractions and Fibonacci  numbers, and another is
> that you know (+%)/ is for  continued fractions. In the same vein, we can
> also try this (1&(+%)^:_)1 ( = 1.61803, golden ratio)
>
>
>
>
>
>
> On Thursday, February 20, 2014 5:49 PM, Peter B. Kessler
> <peter.b.kess...@oracle.com> wrote:
>
> A more interesting question is: Why did you think of doing it that way?
> The really interesting question is: How can I learn to think that way?
>
>             ... peter
>
>
> On 02/20/14 12:42, Roger Hui wrote:
> > % 1 +. (+%)/\ 100 $ 1x
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
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