Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Why should we learn Fibonacci series?

 
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, I had this question in mind from many days. Why should we learn fibonacci series? While in college we had this in our syllabus. Write a java program to print Fibonacci series till N. Where N is a number.

Not only this, we even had java program to check whether given number is armstrong or not (153 for example).

I wonder why should we learn them. I dint use any of them till now. Can anyone please tell me what is it real purpose.

Thank you, good day.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's not because the Fibonacci series is useful in everyday life as a business software developer, but because it's an interesting mathematical thing and something simple which you can use to learn what recursion is (it's often used as an exercise to learn to write a recursive program).
 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jesper de Jong wrote:It's not because the Fibonacci series is useful in everyday life as a business software developer, but because it's an interesting mathematical thing and something simple which you can use to learn what recursion is (it's often used as an exercise to learn to write a recursive program).

Okay, thank you. But what is the use of Fibonacci series in real life?
 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jesper de Jong wrote:It's not because the Fibonacci series is useful in everyday life as a business software developer, but because it's an interesting mathematical thing and something simple which you can use to learn what recursion is (it's often used as an exercise to learn to write a recursive program).

Okay, thank you. But what is the use of Fibonacci series in real life?

PS: I mean its mathematical importance
 
Rancher
Posts: 3742
16
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

chaitanya karthikk wrote:

Jesper de Jong wrote:It's not because the Fibonacci series is useful in everyday life as a business software developer, but because it's an interesting mathematical thing and something simple which you can use to learn what recursion is (it's often used as an exercise to learn to write a recursive program).

Okay, thank you. But what is the use of Fibonacci series in real life?


Did you click on that link in Jesper's post ?
 
whippersnapper
Posts: 1843
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have a small running joke about Fibonacci numbers at my work.

We use "powers of two" for estimating time on story cards: a 1-hour card, 2-hour, 4-hour, 8-hour, etc. At a meeting with some business analysts on the topic of whether they wanted us to record actual time spent in addition to estimates, one of the BSAs asked, "Well if you record actuals, are you going to stick to those numbers you use for estimating -- what are they? Fibonacci numbers?" So the joke became that we would continue to estimate in powers of two, but record actuals with Fibonacci numbers. In the end it they decided not to have us record actuals, so the point became moot. But we still make the occasional joke about the 5- or 13- hour story card. Or when struggling to make an estimate, pick some value between the powers of two we're debating between and wonder loudly if it's a Fibonacci number and whether we should switch to the Fibonacci series for estimating.
 
author
Posts: 23908
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Joanne Neal wrote:

chaitanya karthikk wrote:

Jesper de Jong wrote:It's not because the Fibonacci series is useful in everyday life as a business software developer, but because it's an interesting mathematical thing and something simple which you can use to learn what recursion is (it's often used as an exercise to learn to write a recursive program).

Okay, thank you. But what is the use of Fibonacci series in real life?


Did you click on that link in Jesper's post ?



I find the usage of these "golden numbers" in the real world very interesting. Lots of things are "3 by 5" or "5 by 8" -- it is like designers are using these numbers in a Feng Shui sort of way...

Henry
 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Joanne Neal wrote:

chaitanya karthikk wrote:

Jesper de Jong wrote:It's not because the Fibonacci series is useful in everyday life as a business software developer, but because it's an interesting mathematical thing and something simple which you can use to learn what recursion is (it's often used as an exercise to learn to write a recursive program).

Okay, thank you. But what is the use of Fibonacci series in real life?


Did you click on that link in Jesper's post ?

Yeah I read that link. It speaks about the histroy of fibonacci series, its occurrences in nature and some mathematical things. However I am not a mathematical expert and could not understand it. I want to know the applications of fibonacci series in computer applications.
 
Ranch Hand
Posts: 1609
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

chaitanya karthikk wrote: Can anyone please tell me what is it real purpose.


because they ask about it it in a fresher's interview.
 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Akhilesh Trivedi wrote:

chaitanya karthikk wrote: Can anyone please tell me what is it real purpose.


because they ask about it it in a fresher's interview.

lolz
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
to ask question *Why should we learn Fibonacci series* - thinking ability ...
 
lowercase baba
Posts: 13003
66
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Because you can't ask a freshman student to write a program that manages a stock exchange.

There is a LOT to learn when you are just starting out. You want the student spend their time learning about programming things, not what he or she is trying to model. So, you find something that is easy to understand (it probably takes about 10 minutes to understand a fibonacci series), and then the student can focus on learning how to code.
 
Master Rancher
Posts: 4036
54
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Michael Matola wrote:We have a small running joke about Fibonacci numbers at my work.

We use "powers of two" for estimating time on story cards: a 1-hour card, 2-hour, 4-hour, 8-hour, etc. At a meeting with some business analysts on the topic of whether they wanted us to record actual time spent in addition to estimates, one of the BSAs asked, "Well if you record actuals, are you going to stick to those numbers you use for estimating -- what are they? Fibonacci numbers?" So the joke became that we would continue to estimate in powers of two, but record actuals with Fibonacci numbers. In the end it they decided not to have us record actuals, so the point became moot. But we still make the occasional joke about the 5- or 13- hour story card. Or when struggling to make an estimate, pick some value between the powers of two we're debating between and wonder loudly if it's a Fibonacci number and whether we should switch to the Fibonacci series for estimating.



And for those who don't know, Fibonacci numbers are used for estimation under some methodologies - see Planning Poker. Often the numbers used are not strictly Fibonacci numbers, but mostly Fibonacci numbers with a few others thrown in. There's not really a good reason for this, other than that (a) it discourages over-precision, and (b) it's more fine-grained than the powers-of-two approach. And (c) at larger values they round off the values away from the Fibonacci values, just to keep the math simpler. I'm sure they could have found other sequences with similar properties, but Fibonacci series are familiar to many programmers, so why not?
 
Michael Matola
whippersnapper
Posts: 1843
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mike Simmons wrote:And for those who don't know, Fibonacci numbers are used for estimation under some methodologies - see Planning Poker.



Cool. Obviously I didn't know this.
 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks all for the responses. At least I came to know that Fibonacci series is used in Agile. Indeed we use agile here, since I am not a scrum master I dint know about this till now.
 
Jesper de Jong
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Man of Numbers: Fibonacci's Arithmetic Revolution
 
Rancher
Posts: 4686
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Because they happen in nature. A lot of photographic composition is based on the golden ratio, which is a Fibonacci series. See
http://photofocus.com/2013/03/01/fibonacci-nautilus-shells-and-photography/
 
Michael Matola
whippersnapper
Posts: 1843
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So if you ever meet young Poesy Emmeline Fibonacci Nautilus Taylor Doctorow, you can have an informed conversation with her about her name.
 
Ranch Hand
Posts: 1408
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another reason for learning about Fibonacci numbers is because the name is so funny.

The discipline of statistics also has funny names, such as the hospital rule and the poison distribution problem.
 
Rancher
Posts: 1043
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Frank Silbermann wrote:
The discipline of statistics also has funny names, such as the hospital rule and the poison distribution problem.



Actually L'Hôpital and Poisson are persons' names - a circumstance surely known to Frank but not forcibly to any visitor.
 
Space pants. Tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic