User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Pascal and Delphi section within the Software Development category of DaniWeb, a massive community of 429,898 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,298 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Pascal and Delphi advertiser: Programming Forums
Views: 1188 | Replies: 4 | Solved
Reply
Join Date: Nov 2007
Posts: 39
Reputation: Jade_me is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
Jade_me's Avatar
Jade_me Jade_me is offline Offline
Light Poster

Question Fibonaci

  #1  
Mar 6th, 2008
i try to make fibonacci pattern but i confused.
there are anyone give me a hand for this example?please....

thanks in advance..
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Location: � Jogja �
Posts: 2,585
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Rep Power: 11
Solved Threads: 235
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Fibonaci

  #2  
Mar 6th, 2008
see this code :
  1. function FIBO(N : integer) : integer;
  2.  
  3. begin
  4. if (N = 1) or (N = 2) then
  5. FIBO := 1
  6. else
  7. FIBO(N) := FIBO(N - 1) + FIBO(N - 2)
  8. end;
hope this helps...
Last edited by Jx_Man : Mar 6th, 2008 at 2:04 am.
Reply With Quote  
Join Date: Nov 2007
Posts: 39
Reputation: Jade_me is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
Jade_me's Avatar
Jade_me Jade_me is offline Offline
Light Poster

Re: Fibonaci

  #3  
Mar 6th, 2008
thanks jx_man to fibo function.
Reply With Quote  
Join Date: Nov 2007
Location: � Jogja �
Posts: 2,585
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Rep Power: 11
Solved Threads: 235
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Fibonaci

  #4  
Mar 7th, 2008
you're welcome my friend
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote  
Join Date: May 2008
Posts: 2
Reputation: Dajwalker is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Dajwalker Dajwalker is offline Offline
Newbie Poster

Re: Fibonaci

  #5  
May 31st, 2008
Originally Posted by Jade_me View Post
i try to make fibonacci pattern but i confused.
there are anyone give me a hand for this example?please....

thanks in advance..


I have some knowledge in this field. Fibonacci was a mathematician many centuries ago.
The Fibonacci pattern, or more correctly, Fibonacci spiral is based upon the Fibonacci sequence in which the subsequent following number is the sum of the previous two numbers.
The sequence begins with numbers 0 and 1 which results in the number 1 by addition of 0+1.
The following is the first few lines of the sequence.
0
0+1=1
1+1=2
1+2=3
2+3=5 and so on.

Thus the sequence is:- 0, 1, 1, 2, 3, 5, 8, 13, 21, 34 ....... etc.

The pattern is based upon a series of squares and this would difficult to produce here as it would require a drawing programme.

I hope this helps.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Pascal and Delphi Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Pascal and Delphi Forum

All times are GMT -4. The time now is 9:16 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC