Mathematics Problem

Discussion in 'General Discussion' started by DarkUnderlord, Oct 19, 2006.

Remove all ads!
Support Terra-Arcanum:

GOG.com

PayPal - The safer, easier way to pay online!
  1. DarkUnderlord

    DarkUnderlord Administrator Staff Member

    Messages:
    4,315
    Likes Received:
    5
    Joined:
    Nov 10, 2001
    Given everyone here seems to know more about maths then I do, I've got a problem.

    Say I have $100. I add 5%. I now have $105. I add 5% to that and I have $110.25. If I continue that 100 times, I end up with $12,523.93 which is the number I want. The question is, how can I do that in one formula? Obviously if I go ($100 + 5%) * 100 or 100 + (5% * 100) I don't get the answer I want. So far, the only way I can think of doing it is to actually perform the calculation 100 times.

    Is there any way I can do it all in one simple calculation though, rather than looping through the same $amount + 5% however many times necessary?
     
  2. Vorak

    Vorak Administrator Staff Member

    Messages:
    5,829
    Likes Received:
    21
    Joined:
    Sep 15, 2003
    (100 + 10.25%) * 100

    Maybe, math isn't my strength.
     
  3. Frigo

    Frigo Active Member

    Messages:
    2,107
    Likes Received:
    0
    Joined:
    Jan 21, 2006
    $100 * (105% ^ 100)

    or

    $100 * (1.05 ^ 100)

    $100 multiplied by 1.05 to the power of 100


    Edit:

    or, if you want the solution n to

    $100 * 105% ^ n = c

    for some constant c, then

    n = log (c / $100) / log (1.05)

    for an arbitary logarithmic base.

    Edit:
    mathboy thank you for not editing my posts
    mathboy thank you for not editing my posts
     
  4. Vorak

    Vorak Administrator Staff Member

    Messages:
    5,829
    Likes Received:
    21
    Joined:
    Sep 15, 2003
    Well there you go, I'm glad mathboy's going to be around.

    Now if you'd be so kind DU please ninja edit Frigo's pictures away from his post.
     
  5. mathboy

    mathboy New Member

    Messages:
    2,185
    Likes Received:
    0
    Joined:
    Sep 3, 2003
    It's easy:

    $100 * (105% ^ 100)

    or

    $100 * (1.05 ^ 100)

    $100 multiplied by 1.05 to the power of 100


    or, if you want the solution n to

    $100 * 105% ^ n = c

    for some constant c, then

    n = log (c / $100) / log (1.05)

    for an arbitary logarithmic base.

    And I removed Frigo's pictures!
     
  6. Vorak

    Vorak Administrator Staff Member

    Messages:
    5,829
    Likes Received:
    21
    Joined:
    Sep 15, 2003
    Did you like mathematics before you were called mathboy, or does the inate love of numbers come with the name?
     
  7. Frigo

    Frigo Active Member

    Messages:
    2,107
    Likes Received:
    0
    Joined:
    Jan 21, 2006
    Pffff this is a conspiracy against me.
     
  8. mathboy

    mathboy New Member

    Messages:
    2,185
    Likes Received:
    0
    Joined:
    Sep 3, 2003
    I took the name because I needed a cool name, and already liked math.

    By the way, it seems like Frigo is trying to copy my answer in his post. Bad Frigo. Good thing it is possible to see that he edited his posts at least.
     
  9. DarkUnderlord

    DarkUnderlord Administrator Staff Member

    Messages:
    4,315
    Likes Received:
    5
    Joined:
    Nov 10, 2001
    Oh wow, that lets me figure it out backwards too. Most excellent. That was going to be my next question. :)

    Oh and one more post and mathboy is 1337.
     
  10. Vorak

    Vorak Administrator Staff Member

    Messages:
    5,829
    Likes Received:
    21
    Joined:
    Sep 15, 2003
    And then he'll stop posting again and just edit his replies into everyone elses posts.
     
  11. Vyenna

    Vyenna New Member

    Messages:
    1,446
    Likes Received:
    0
    Joined:
    Jun 30, 2005
  12. Xz

    Xz Monkey Admin Staff Member

    Messages:
    5,085
    Likes Received:
    4
    Joined:
    May 31, 2003
    You could also do:

    e^((ln($100) * ln(1.05))^100))

    Of course that would be a lot more work than necessary, but logarithms are so much fun. :D
     
  13. Vorak

    Vorak Administrator Staff Member

    Messages:
    5,829
    Likes Received:
    21
    Joined:
    Sep 15, 2003
  14. mathboy

    mathboy New Member

    Messages:
    2,185
    Likes Received:
    0
    Joined:
    Sep 3, 2003
    I think they are way funnier when you don't understand them... :/

    e^(ln100+100ln1.05)
     
  15. Spuddy

    Spuddy New Member

    Messages:
    1,037
    Likes Received:
    0
    Joined:
    Aug 16, 2006
    Is that something like a very complicated way of saying 2 + 2 = 4?

    That's the limit of my expertise, I'm afraid.
     
  16. Maximus

    Maximus New Member

    Messages:
    1,306
    Likes Received:
    0
    Joined:
    Mar 1, 2006
  17. Xz

    Xz Monkey Admin Staff Member

    Messages:
    5,085
    Likes Received:
    4
    Joined:
    May 31, 2003
    no it's an easier way of saying what I said, which was a more complicated way of saying 100*1.05^100, which again is writing "one hundred times one point zero five to the power of one hundred" with mathematical symbols and numbers.


    Isn't math fun?
     
  18. Vorak

    Vorak Administrator Staff Member

    Messages:
    5,829
    Likes Received:
    21
    Joined:
    Sep 15, 2003
    Wrong Mathman!

    There is no 'S' you fool.
     
  19. Xz

    Xz Monkey Admin Staff Member

    Messages:
    5,085
    Likes Received:
    4
    Joined:
    May 31, 2003
    Well excuse me, I mean I take physics chemistry and mathematics, there is no room for English on my schedule.
     
  20. Vorak

    Vorak Administrator Staff Member

    Messages:
    5,829
    Likes Received:
    21
    Joined:
    Sep 15, 2003
Our Host!