fibonacci_binet version 0.3

*Simple example of Fibonacci series algorithm using Binet*

Run

Source (PHP)

```
function fibonacci_binet ($n)
```

{

$phi = (1 + sqrt(5)) / 2;

$u = (pow($phi, $n) - pow(1 - $phi, $n)) / sqrt(5);

return $u;

}

Tools & Information

Rate this algorithm: no ratings yet

Flag: 0 Buggy | 0 Dangerous | 0 Slow | 0 Vandalized

Average run time: 0.000141334 seconds