Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
Hi, Lately I have been doing some numeracy tests in order to prepare myself for a test based interview as it seems to be the case with some of the ...
  1. #1
    Linux Newbie
    Join Date
    Sep 2006
    Posts
    175

    Looking for a mathematical formula

    Hi,

    Lately I have been doing some numeracy tests in order to prepare myself for a test based interview as it seems to be the case with some of the firms hiring these days. Here is the question. I can not get my head around it. In fact I can get the answer doing it manually, but I think there a mathematical formula available to work this kind of problems out. Thanks a lot.

    A town with a population of 2000 grows at a rate of 30% per annum. What will be its population in the next 4 years?

  2. #2
    Just Joined! swerdna's Avatar
    Join Date
    Apr 2006
    Location
    Oz
    Posts
    67
    Quote Originally Posted by tech291083 View Post
    Hi,

    Lately I have been doing some numeracy tests in order to prepare myself for a test based interview as it seems to be the case with some of the firms hiring these days. Here is the question. I can not get my head around it. In fact I can get the answer doing it manually, but I think there a mathematical formula available to work this kind of problems out. Thanks a lot.

    A town with a population of 2000 grows at a rate of 30% per annum. What will be its population in the next 4 years?
    If P(t) is the population at time t, and if t is measured in years from year t0, then:
    P(t>t0) = P(t0)exp**[0.3*(t-t0)]

    Is that correct?

    Swerdna

  3. #3
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,391
    What you need is a straightforward compound interest formula. Have you taken a look on Wikipedia for help here?
    Linux user #126863 - see http://linuxcounter.net/

  4. #4
    Just Joined! swerdna's Avatar
    Join Date
    Apr 2006
    Location
    Oz
    Posts
    67
    Quote Originally Posted by Roxoff View Post
    What you need is a straightforward compound interest formula. Have you taken a look on Wikipedia for help here?
    Hi Roxoff. I see the compound interest formulae on your reference. I was using the population-growth formula with growth parameter set to 0.3 per 365 days. Why would bank interest be more relevant?

    Swerdna

  5. #5
    Linux Guru fingal's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham - UK
    Posts
    1,539
    Must be a boring place to live, if the population increases at just 30% each year ...

    Roughly 4400?
    I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso

  6. #6
    Linux Newbie daacosta's Avatar
    Join Date
    Sep 2005
    Location
    Medellín, Colombia
    Posts
    213
    Quote Originally Posted by tech291083 View Post
    Hi,

    Lately I have been doing some numeracy tests in order to prepare myself for a test based interview as it seems to be the case with some of the firms hiring these days. Here is the question. I can not get my head around it. In fact I can get the answer doing it manually, but I think there a mathematical formula available to work this kind of problems out. Thanks a lot.

    A town with a population of 2000 grows at a rate of 30% per annum. What will be its population in the next 4 years?

    Is this a homework?
    -D-

    Registered User # 402675

  7. #7
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,391
    Quote Originally Posted by swerdna View Post
    Hi Roxoff. I see the compound interest formulae on your reference. I was using the population-growth formula with growth parameter set to 0.3 per 365 days. Why would bank interest be more relevant?

    Swerdna
    lol, I think you're overcomplicating it somewhat. It's a simple algorithm.

    Value N grows by X% per year over Y years...

    In pseudocode:

    Code:
      int value = N
      const rate = X
      const years = Y
    
      for (i = 1 to years)
         value = value+((value*rate)/100)
      next i
    
      return value
    As you're looking at a timescale measured in years, you dont need to worry about numbers of days.
    Linux user #126863 - see http://linuxcounter.net/

  8. #8
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    What kind of job are you talking?

  9. #9
    Linux Newbie the bassinvader's Avatar
    Join Date
    Jun 2006
    Location
    Europe
    Posts
    168
    Roxoff is 100% correct. This is just a matter of a simple compound interest formula!!!

    Why would bank interest be more relevant?
    ???. Banks aren't the only people that use this type of formula!!!!
    " I didn't know it was a picture of his wife! I thought it was a publicity shot form Planet Of the Apes."

  10. #10
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,391
    Quote Originally Posted by the bassinvader View Post
    Roxoff is 100% correct.
    And now, 100% smug.
    Linux user #126863 - see http://linuxcounter.net/

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •