FacebookTwitter
Hatrack River Forum   
my profile login | search | faq | forum home

  next oldest topic   next newest topic
» Hatrack River Forum » Active Forums » Books, Films, Food and Culture » Math question (mayfly)

   
Author Topic: Math question (mayfly)
Lisa
Member
Member # 8384

 - posted      Profile for Lisa   Email Lisa         Edit/Delete Post 
I don't know. Maybe if I wasn't sick, I'd be able to figure this out myself. Maybe not.

I have a spreadsheet with budget numbers to be input programmatically. And I need to let the user input a number, and have it spread across 12 months, such that each month is X% higher than the previous month.

I can't figure out how to calculate it. As far as I can see, it's a series. If A is the total that's getting spread, and B is what gets multiplied on each month (1 + X%) and C is the amount that gets put in the first month, I have something like this:

A = C + CB + CB^2 + Cy^B + ... +CB^11

And I have A and B, so it should be possible to solve for C. But I can't do it. O Brains of Hatrack, can you help me?

Posts: 12266 | Registered: Jul 2005  |  IP: Logged | Report this post to a Moderator
Dagonee
Member
Member # 5818

 - posted      Profile for Dagonee           Edit/Delete Post 
Divide by C:

A/C = 1 + B + B^2...

Divide by A:

1/C = (1 + B + B^2...)/A

Take the reciprocal (the only step I'm questionable about - seems if we know C and A are non-zero, should be ok):

C = A/(1 + B + B^2...)

Posts: 26071 | Registered: Oct 2003  |  IP: Logged | Report this post to a Moderator
Stephan
Member
Member # 7549

 - posted      Profile for Stephan   Email Stephan         Edit/Delete Post 
Would it look like this as a very simple example?

http://i22.photobucket.com/albums/b315/ocnomad/test.gif

Posts: 3134 | Registered: Mar 2005  |  IP: Logged | Report this post to a Moderator
Stephan
Member
Member # 7549

 - posted      Profile for Stephan   Email Stephan         Edit/Delete Post 
5% higher in my example
Posts: 3134 | Registered: Mar 2005  |  IP: Logged | Report this post to a Moderator
Icarus
Member
Member # 3162

 - posted      Profile for Icarus   Email Icarus         Edit/Delete Post 
quote:
Originally posted by Dagonee:
Divide by C:

A/C = 1 + B + B^2...

Divide by A:

1/C = (1 + B + B^2...)/A

Take the reciprocal (the only step I'm questionable about - seems if we know C and A are non-zero, should be ok):

C = A/(1 + B + B^2...)

Or you could factor out C and divide by (1 + B + B^2...) on both sides. That quantity can't be zero unless X = -100%, which I doubt.
Posts: 13680 | Registered: Mar 2002  |  IP: Logged | Report this post to a Moderator
Dagonee
Member
Member # 5818

 - posted      Profile for Dagonee           Edit/Delete Post 
Right. I knew that. *whistles innocently*
Posts: 26071 | Registered: Oct 2003  |  IP: Logged | Report this post to a Moderator
Lisa
Member
Member # 8384

 - posted      Profile for Lisa   Email Lisa         Edit/Delete Post 
quote:
Originally posted by Dagonee:
Divide by C:

A/C = 1 + B + B^2...

Divide by A:

1/C = (1 + B + B^2...)/A

Take the reciprocal (the only step I'm questionable about - seems if we know C and A are non-zero, should be ok):

C = A/(1 + B + B^2...)

Okay, now, that's just embarrassing.

Thanks, Dagonee. I should have seen that.

Posts: 12266 | Registered: Jul 2005  |  IP: Logged | Report this post to a Moderator
Bokonon
Member
Member # 480

 - posted      Profile for Bokonon           Edit/Delete Post 
Icarus did it the way I would have. And even if X = -100%, you are left with C = A, which is trivial to watch out for [Smile]

Factoring is fun!

-Bok

Posts: 7021 | Registered: Nov 1999  |  IP: Logged | Report this post to a Moderator
   

   Close Topic   Feature Topic   Move Topic   Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:


Contact Us | Hatrack River Home Page

Copyright © 2008 Hatrack River Enterprises Inc. All rights reserved.
Reproduction in whole or in part without permission is prohibited.


Powered by Infopop Corporation
UBB.classic™ 6.7.2