Planning to add proper PHPunit and PHPlogger code examples and pills to cure migraines permanently. blog about it at http://bcmoney-mobiletv.com/blog/

### Advertisement

### Categories

Handy snippets of code

Planning to add proper PHPunit and PHPlogger code examples and pills to cure migraines permanently. blog about it at http://bcmoney-mobiletv.com/blog/

Posted in PHP Also tagged development, example, iterative, math, php, programming, Recursive Leave a comment

Posted in Java Also tagged development, factorial, golden ratio, java, loop, math, programming, recursion Leave a comment

I didn’t invent this, but it’s too cool a snippet not to capture. Here’s a one-liner that will generate a list of Fibonacci numbers in linear time. EXPLANATION: the colon operator is used to add elements to a list, so it starts out adding on the two base cases, zero and one. After you have [...]

Posted in Haskell Also tagged development, element, fibonacci number, fibonacci numbers, programming Leave a comment

The fibonacci sequence has many applications , such asAï¿½paintings , predicting stock market changes and even sunflowers. This example illustrates the fibonacci sequence in Haskell.

Posted in Haskell Also tagged functional programming, ghci, haskell, math, programming, recursion, sequence Leave a comment