Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 12 of 12
You can do this a few ways... Iteration, like roxoff showed. Recursion, which is needlessly complicated in this case. Or with this formula. let x = end answer let p ...
  1. #11
    Linux User Dark_Stang's Avatar
    Join Date
    Jun 2006
    Location
    Around St. Louis
    Posts
    284
    You can do this a few ways...
    Iteration, like roxoff showed.
    Recursion, which is needlessly complicated in this case.

    Or with this formula.
    let x = end answer
    let p = starting population
    let i = increase in size each year
    let y = how many years
    x = p*(i^y)
    As in, x equals p multiplied by i to the y power.
    Two levels higher than a newb.
    (I can search google)

  2. #12
    Linux Newbie
    Join Date
    Sep 2006
    Posts
    175
    Thanks guys for the help...appreciated..

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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