(mostly OT) Strange patterns of commas

Fibonacci numbers are always surprising. Try this on a terminal that's 159 characters wide (using a properly sized xterm(1) may be a good idea): let f = 1 : 1 : zipWith (+) f (tail f) in take 780 f Ciao, Kili -- There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult. -- C.A.R. Hoare

Now see if you can tell us why this pattern is similar: [ replicate n '-' | n <- [140..171] ] Hint: Look at the closed form as n gets big: http://en.wikipedia.org/wiki/Fibonacci_number#Closed_form_expression After that, you can tell us why it's a parabola. Matthias Kilian wrote:
Fibonacci numbers are always surprising.
Try this on a terminal that's 159 characters wide (using a properly sized xterm(1) may be a good idea):
let f = 1 : 1 : zipWith (+) f (tail f) in take 780 f
Ciao, Kili
participants (2)
-
Matthew Brecknell
-
Matthias Kilian