Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > The Community > The Coffee Lounge
Reload this Page Looking for a mathematical formula
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

The Coffee Lounge General chat about anything that goes, a good place to introduce yourself and say hi, tell a Joke, or just relax.

Site Navigation
Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 04-25-2007   #1 (permalink)
Linux Newbie
 
Join Date: Sep 2006
Posts: 161
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?
tech291083 is offline   Reply With Quote
Old 04-25-2007   #2 (permalink)
Just Joined!
 
swerdna's Avatar
 
Join Date: Apr 2006
Posts: 59
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
__________________
Come visit sometime
swerdna is offline   Reply With Quote
Old 04-25-2007   #3 (permalink)
Trusted Penguin
 
Roxoff's Avatar
 
Join Date: Aug 2005
Location: Nottingham, England
Posts: 2,567
What you need is a straightforward compound interest formula. Have you taken a look on Wikipedia for help here?
__________________
Linux user #126863 - see http://counter.li.org/
Roxoff is offline   Reply With Quote
Old 04-25-2007   #4 (permalink)
Just Joined!
 
swerdna's Avatar
 
Join Date: Apr 2006
Posts: 59
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
__________________
Come visit sometime
swerdna is offline   Reply With Quote
Old 04-25-2007   #5 (permalink)
Linux Guru
 
fingal's Avatar
 
Join Date: Jul 2003
Location: Birmingham - UK
Posts: 1,533
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
fingal is offline   Reply With Quote
Old 04-25-2007   #6 (permalink)
Linux Newbie
 
daacosta's Avatar
 
Join Date: Sep 2005
Location: Medellín, Colombia
Posts: 188
Send a message via MSN to daacosta Send a message via Yahoo to daacosta
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
daacosta is offline   Reply With Quote
Old 04-25-2007   #7 (permalink)
Trusted Penguin
 
Roxoff's Avatar
 
Join Date: Aug 2005
Location: Nottingham, England
Posts: 2,567
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://counter.li.org/
Roxoff is offline   Reply With Quote
Old 04-25-2007   #8 (permalink)
Linux Enthusiast
 
likwid's Avatar
 
Join Date: Dec 2006
Location: MA
Posts: 649
What kind of job are you talking?
likwid is offline   Reply With Quote
Old 04-25-2007   #9 (permalink)
Linux Newbie
 
the bassinvader's Avatar
 
Join Date: Jun 2006
Location: Europe
Posts: 157
Roxoff is 100% correct. This is just a matter of a simple compound interest formula!!!

Quote:
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."
the bassinvader is offline   Reply With Quote
Old 04-26-2007   #10 (permalink)
Trusted Penguin
 
Roxoff's Avatar
 
Join Date: Aug 2005
Location: Nottingham, England
Posts: 2,567
Quote:
Originally Posted by the bassinvader View Post
Roxoff is 100% correct.
And now, 100% smug.
__________________
Linux user #126863 - see http://counter.li.org/
Roxoff is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Job Search
keyword location
Post a Job »
job title, keywords or company
city, state or zip jobs by job search

Free Magazines
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say. So when it comes right down to it, how does the Google selection stack up against the rest of messaging security's big guns?
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 02:10 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0