Math - help
- NuclearSilo
- Forum God
- Posts: 8834
- Joined: Mon Aug 21, 2006 12:00 pm
- Quick Reply: Yes
- Location: Age of Wushu
Math - help
So, i'm gonna play a game, i'm trying to figure out what's the best combination of stats to have the best dmg output.
Let's say you have 4000 stat points and you have to spread them over your stats. You know that each 10 Str gives you 1 dmg, each 100 agi +1% attack speed, each 100 energy +1% dmg amplify.
The dmg can be translate like this:
DMG = (base_power + X)*Y*Z where
X=STR/10
Y=1+(AGI/100)%
Z=1+(ENE/100)%
STR+AGI+ENE=4000
So, what's the max of DMG?
Let's say you have 4000 stat points and you have to spread them over your stats. You know that each 10 Str gives you 1 dmg, each 100 agi +1% attack speed, each 100 energy +1% dmg amplify.
The dmg can be translate like this:
DMG = (base_power + X)*Y*Z where
X=STR/10
Y=1+(AGI/100)%
Z=1+(ENE/100)%
STR+AGI+ENE=4000
So, what's the max of DMG?
Playing Age of Wushu, dota IMBA
- poehalcho
- Elite Member
- Posts: 6131
- Joined: Mon Apr 30, 2007 3:32 pm
- Quick Reply: Yes
- Location: ┌(╬ಠ益ಠ)╯( ̄ー ̄)(ノ◕ヮ◕)ノ:・✧(╯°Д°)╯彡┻━┻ψ(`∇´)ψ(☞゚∀゚)☞¯\_(ツ)_/¯ლ(ಥ益ಥლ)ԅ༼ ◔ڡ◔༽งヽ༼ʘ̚ل͜ʘ̚༽ノᕕ(ᐛ)ᕗ( ͡° ͜ʖ ͡°)
Re: Math - help
1400/10 * 1300/100 * 1300/100 = 140 * 13 * 13 = 23660 MAX damage
even a slight bit of like 141 * blaba*blabla = 23646
I suppose my awnser may be off by 1 or 2 since i didn't bother with decimal's but that's pretty near to where it gets...
even a slight bit of like 141 * blaba*blabla = 23646
I suppose my awnser may be off by 1 or 2 since i didn't bother with decimal's but that's pretty near to where it gets...

Day[9] wrote:"Tea is a lot like gold expansions - it helps you kill people."
- Day[9] Daily 337 -
- NuclearSilo
- Forum God
- Posts: 8834
- Joined: Mon Aug 21, 2006 12:00 pm
- Quick Reply: Yes
- Location: Age of Wushu
Re: Math - help
Sorry if it's a stupid question but what's the value of the base_power? 
- Goobronicus
- Frequent Member
- Posts: 1011
- Joined: Wed Nov 14, 2007 4:02 am
- Quick Reply: Yes
- Location: Azteca
Re: Math - help
Highest I got was:
(1334/10) x (1333/100) x (1333/100) = ~23704
Just like volume, biggest volume is if all 3 are close to the same multiplier.
(1334/10) x (1333/100) x (1333/100) = ~23704
Just like volume, biggest volume is if all 3 are close to the same multiplier.
I'm glad our mod's ban doucherockets
- NuclearSilo
- Forum God
- Posts: 8834
- Joined: Mon Aug 21, 2006 12:00 pm
- Quick Reply: Yes
- Location: Age of Wushu
Re: Math - help
Jaapii wrote:Sorry if it's a stupid question but what's the value of the base_power?
base_power is a variable independant from stats (like weapon or skill) but it can vary from 0 to even 10000
I just want to know how do you all found around 1300 coz the stuffs i said about attack speed, dmg amp are just an exemple. Is there any global equation to find these value?
Playing Age of Wushu, dota IMBA
Re: Math - help
You guys aren't even attempting to solve this. Easily shown that if x=2000 y=1000 z=1000 then you get 24k+.
Give you a hint, maximize the second part:

Give you a hint, maximize the second part:

Last edited by SM-Count on Mon Apr 13, 2009 8:03 pm, edited 1 time in total.
Re: Math - help
Y & Z actually are basicly the same, so if u spend stat points to Y or Z it doesn't matter much lulz 
And if the base_power is over 1000, u should be taking Y (or Z) only, cuz then 100 agi points = 1% = 10 extra dmg, 100 str = 10 extra damage as well.
So I guess it's something like;
if base_power < 1000: put stat points in str.
base_power > 1000: put stat points in Y/Z
base_power = 1000: doesn't matter where u put ur stat points.
Isn't it something like that?
And if the base_power is over 1000, u should be taking Y (or Z) only, cuz then 100 agi points = 1% = 10 extra dmg, 100 str = 10 extra damage as well.
So I guess it's something like;
if base_power < 1000: put stat points in str.
base_power > 1000: put stat points in Y/Z
base_power = 1000: doesn't matter where u put ur stat points.
Isn't it something like that?
Re: Math - help
There is going to be a point where it's advisable to max y&z and not x, but since the question doesn't give use base_damage we just assume it's 0. The answer changes if base damage changes. Best way to do this is what I did but leave 'b' in and create the function, then differentiate to maximize. (Or by inspection without calculus)
- Stress
- Ex-Staff
- Posts: 4599
- Joined: Thu Oct 26, 2006 7:42 am
- Quick Reply: Yes
- Location: Studying Computer Science, Vienna
Re: Math - help
Allright.
You have a multi-variable function, and you're trying to determine its maximum, when there is a link between the variables.
I don't have the time for all of the calculations, but here's an Idea: the Lagrange multiplier. Ever heard of it?
f(x,y,z)=(base_damage+x)*y*z;
x=STR/10
y=1+(AGI/100)
z=1+(ENE/100)
we have STR + AGI + ENE = 4000. Now, express STR, AGI and ENE in function of x, y and z respectively.
Now, take a look at this article, and do the calculations yourself:
http://en.wikipedia.org/wiki/Lagrange_multipliers
Good luck
You have a multi-variable function, and you're trying to determine its maximum, when there is a link between the variables.
I don't have the time for all of the calculations, but here's an Idea: the Lagrange multiplier. Ever heard of it?
f(x,y,z)=(base_damage+x)*y*z;
x=STR/10
y=1+(AGI/100)
z=1+(ENE/100)
we have STR + AGI + ENE = 4000. Now, express STR, AGI and ENE in function of x, y and z respectively.
Now, take a look at this article, and do the calculations yourself:
http://en.wikipedia.org/wiki/Lagrange_multipliers
Good luck
Carry your cross, and I'll carry mine.
Re: Math - help
You can do it without multivariable calculus if you're good at diophantine inspection, saves a lot of time.
- poehalcho
- Elite Member
- Posts: 6131
- Joined: Mon Apr 30, 2007 3:32 pm
- Quick Reply: Yes
- Location: ┌(╬ಠ益ಠ)╯( ̄ー ̄)(ノ◕ヮ◕)ノ:・✧(╯°Д°)╯彡┻━┻ψ(`∇´)ψ(☞゚∀゚)☞¯\_(ツ)_/¯ლ(ಥ益ಥლ)ԅ༼ ◔ڡ◔༽งヽ༼ʘ̚ل͜ʘ̚༽ノᕕ(ᐛ)ᕗ( ͡° ͜ʖ ͡°)
Re: Math - help
NuclearSilo wrote:how do you do that? To find 1400 1300 1300
I..uh...counted D: we haven't had these kind of things with maths yet, so I just tried by couting. I'm fairly good at guessing. but really, there's bound to be a formula for that stuff somewhere.

Day[9] wrote:"Tea is a lot like gold expansions - it helps you kill people."
- Day[9] Daily 337 -
Re: Math - help
It is actually some kind of sequence (idk how it's called in english but I guess like that lolz, it's seq on my calculator
)
if u(n-1) < 1000: u(n) = u(n-1) + X
u(n-1) > 1000: u(n) = u(n-1) * Y or Z
u(n-1) = 1000: doesn't matter.
and u(n) would be the damage, n = 400 in the first case, 40 in the 2nd.
if u(n-1) < 1000: u(n) = u(n-1) + X
u(n-1) > 1000: u(n) = u(n-1) * Y or Z
u(n-1) = 1000: doesn't matter.
and u(n) would be the damage, n = 400 in the first case, 40 in the 2nd.
- NuclearSilo
- Forum God
- Posts: 8834
- Joined: Mon Aug 21, 2006 12:00 pm
- Quick Reply: Yes
- Location: Age of Wushu
Re: Math - help
Jaapii wrote:Y & Z actually are basicly the same, so if u spend stat points to Y or Z it doesn't matter much lulz
And if the base_power is over 1000, u should be taking Y (or Z) only, cuz then 100 agi points = 1% = 10 extra dmg, 100 str = 10 extra damage as well.
So I guess it's something like;
if base_power < 1000: put stat points in str.
base_power > 1000: put stat points in Y/Z
base_power = 1000: doesn't matter where u put ur stat points.
Isn't it something like that?
uhm, no, it's not simple like that. You have to multiply with rest of the variable too.
So 100 extra str gives 10 dmg but the total dmg will be added by 10*Y*Z.
100 extra agi gives 1% attack speed and the total dmg (over time) will be added by (base+X)*0.1*Y
So what you need to compare is 10*Y*Z and (base+X)*0.1*Y but since both have different variables, how do you do to compare them?
@SM-Count: I can't resolve your equation Oo
Playing Age of Wushu, dota IMBA