Page 2 of 2

Re: UP formula?

Posted: Thu Sep 13, 2007 9:30 am
by darkness5723
yea i know that.. its just a hypothetical starting point to test the formula.

Re: UP formula?

Posted: Thu Sep 13, 2007 9:35 am
by Sphinx42
Then what is the problem, exactly? You're losing me :)
Seems to me the formula is correct, and the calculator is correct too... so, no problem?

Re: UP formula?

Posted: Fri Sep 14, 2007 7:25 pm
by darkness5723
problem is.. either pookie's calc is off, or that formula is off.. or i lost all mathematical ability in a relatively short time span lol.

Re: UP formula?

Posted: Fri Sep 14, 2007 9:58 pm
by _Rube_Dragon_
hmm well i dont think pookie's calc is off casue when i do the entries it works perfectly for what im doing

Re: UP formula?

Posted: Fri Sep 14, 2007 10:01 pm
by Milenko
Pookie's works fine for me too.

Re: UP formula?

Posted: Fri Sep 14, 2007 10:22 pm
by Sphinx42
_of War wrote:ok...
((TUP/3)*(TUP/3)+TUP/3)*7500-((CUP/3)*(CUP/3)+CUP/3)*7500-5000

TUP = 20,000
CUP = 1

(TUP/3) = (6,666.67 * 6,666.67 + 6,666.67) * 7,500 = 333,383,666,700
(CUP/3) = (.33 * .33 + .33) * 7500 = 4950 - 5000 = -50
333,383,666,700 - -50 = 333,383,666,750.

if my math is wrong please correct me.. but I don't see any problems with it.

As I said, I don't see anything wrong with either your math or the formula itself, and I'm pretty sure the calculator works just fine. If you don't like the end result, that's because, given a CUP of 1, you can't have a TUP of 20000... since you can only upgrade your UP by a multiple of 3. Try the formula for a TUP of 20002 (6667 upgrades) instead. :)
Hope this made sense.

Re: UP formula?

Posted: Sat Sep 15, 2007 12:03 am
by _Rube_Dragon_
the math looks good too

Re: UP formula?

Posted: Sun Sep 16, 2007 7:50 am
by darkness5723
Lucky Starr wrote:
_of War wrote:ok...
((TUP/3)*(TUP/3)+TUP/3)*7500-((CUP/3)*(CUP/3)+CUP/3)*7500-5000

TUP = 20,000
CUP = 1

(TUP/3) = (6,666.67 * 6,666.67 + 6,666.67) * 7,500 = 333,383,666,700
(CUP/3) = (.33 * .33 + .33) * 7500 = 4950 - 5000 = -50
333,383,666,700 - -50 = 333,383,666,750.

if my math is wrong please correct me.. but I don't see any problems with it.

As I said, I don't see anything wrong with either your math or the formula itself, and I'm pretty sure the calculator works just fine. If you don't like the end result, that's because, given a CUP of 1, you can't have a TUP of 20000... since you can only upgrade your UP by a multiple of 3. Try the formula for a TUP of 20002 (6667 upgrades) instead. :)
Hope this made sense.



aye.. well theres only one problem with that.. making the TUP go up makes the cost go up, and this formula is already spitting out numbers that are high. *shrug*

Re: UP formula?

Posted: Mon Sep 17, 2007 3:50 am
by agapooka
Here's my math:

For those of you who can read PHP:

Code: Select all

//Let $a be the initial UP value
//Let $b be the target UP value
floor(sqrt(((3*$b)/2500)+pow($a,2)+$a))


In a human, mathematical form:

Code: Select all

//Let A be the initial UP value
//Let B be the target UP value
The_square_root_of( ( 3B / 2500 ) + A^2 + A )

Re: UP formula?

Posted: Tue Sep 18, 2007 4:43 am
by darkness5723
yay ty.. i was wondering if you or lego would see this and respond.. thanks ;)

Re: UP formula?

Posted: Fri Sep 21, 2007 10:12 am
by General Mod 2
Agapooka wrote:Here's my math:

For those of you who can read PHP:

Code: Select all

//Let $a be the initial UP value
//Let $b be the target UP value
floor(sqrt(((3*$b)/2500)+pow($a,2)+$a))


In a human, mathematical form:

Code: Select all

//Let A be the initial UP value
//Let B be the target UP value
The_square_root_of( ( 3B / 2500 ) + A^2 + A )


Question answered topic locked :-)