Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
        --$n;
        return ($cache{$n} ||= fib($n)) + ($cache{$n - 1} ||= fib($n - 1))
    +;
    }
    
  2. or download this
    Fibonnaci Fun
    
    ...
    135301852344706746049 / 83621143489848422977 = 1.618033988749894848204
    +58683436563811772
    218922995834555169026 / 135301852344706746049 = 1.61803398874989484820
    +458683436563811772
    354224848179261915075 / 218922995834555169026 = 1.61803398874989484820
    +458683436563811772