Search:

Type: Posts; User: PkD

Search: Search took 0.00 seconds.

  1. Thread: Fibonacci Sequence

    by PkD
    Replies
    15
    Views
    4,375

    It 's ok. I've just posted the Binet's formula...

    It 's ok.

    I've just posted the Binet's formula because it's a curiosity, of course it slow down the PC , but if the user whats a number very big,maybe is it better use the formula? or ...
  2. Replies
    11
    Views
    4,263

    now it's compiling! :cool: #include...

    now it's compiling! :cool:




    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <assert.h>
  3. Thread: Fibonacci Sequence

    by PkD
    Replies
    15
    Views
    4,375

    simple, just include math.h , and than: result...

    simple, just include math.h , and than:

    result = (1/sqrt(5))*((1+sqrt(5))/2)^n-(1/sqrt(5))*((1-sqrt(5))/2)^n ;

    of course n is the variable...

    i've learned this, this week in college. :):cool:
Results 1 to 3 of 3