Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Fibonacci golf with one state variable

by aufflick (Deacon)
on Oct 05, 2008 at 11:56 UTC ( #715425=note: print w/replies, xml ) Need Help??


in reply to Re: Fibonacci golf with one state variable
in thread Fibonacci golf with one state variable

Except is that exactly the Fibonaci question, using an approximation golden ratio? I'll have to check on that...

  • Comment on Re^2: Fibonacci golf with one state variable

Replies are listed 'Best First'.
Re^3: Fibonacci golf with one state variable
by ambrus (Abbot) on Oct 05, 2008 at 12:25 UTC

    That's why it only prints the first few terms, with 18 hard-coded it. If you used the golden ratio more precisely, you'd get more terms. Two examples are the first snippet in Re: Fibonacci Numbers or the last one in Re: Fibonacci numbers (again).

    (By the way, if you want to know about the mathematics of this, I recommend Graham–Knuth–Patashnik: Concrete mathematics.)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://715425]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2023-10-04 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?