Math - help

Anything else. Post a funny site or tell us about yourself. Discuss current events or whatever else you want. Post off topic threads here.
Post Reply
User avatar
NuclearSilo
Forum God
Posts: 8834
Joined: Mon Aug 21, 2006 12:00 pm
Quick Reply: Yes
Location: Age of Wushu

Math - help

Post by NuclearSilo »

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?
Playing Age of Wushu, dota IMBA

User avatar
poehalcho
Elite Member
Posts: 6131
Joined: Mon Apr 30, 2007 3:32 pm
Quick Reply: Yes
Location: ┌(╬ಠ益ಠ)╯( ̄ー ̄)(ノ◕ヮ◕)ノ:・✧(╯°Д°)╯彡┻━┻ψ(`∇´)ψ(☞゚∀゚)☞¯\_(ツ)_/¯ლ(ಥ益ಥლ)ԅ༼ ◔ڡ◔༽งヽ༼ʘ̚ل͜ʘ̚༽ノᕕ(ᐛ)ᕗ( ͡° ͜ʖ ͡°)

Re: Math - help

Post by poehalcho »

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...
Image
Day[9] wrote:"Tea is a lot like gold expansions - it helps you kill people."
- Day[9] Daily 337 -

User avatar
NuclearSilo
Forum God
Posts: 8834
Joined: Mon Aug 21, 2006 12:00 pm
Quick Reply: Yes
Location: Age of Wushu

Re: Math - help

Post by NuclearSilo »

how do you do that? To find 1400 1300 1300
Playing Age of Wushu, dota IMBA

User avatar
Jaapii
Loyal Member
Posts: 1542
Joined: Thu Jan 03, 2008 1:45 pm
Quick Reply: Yes
Location: Belgium

Re: Math - help

Post by Jaapii »

Sorry if it's a stupid question but what's the value of the base_power? :?

User avatar
Goobronicus
Frequent Member
Posts: 1011
Joined: Wed Nov 14, 2007 4:02 am
Quick Reply: Yes
Location: Azteca

Re: Math - help

Post by Goobronicus »

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.
ImageI'm glad our mod's ban doucherocketsImage

User avatar
NuclearSilo
Forum God
Posts: 8834
Joined: Mon Aug 21, 2006 12:00 pm
Quick Reply: Yes
Location: Age of Wushu

Re: Math - help

Post by NuclearSilo »

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

User avatar
SM-Count
Ex-Staff
Posts: 2761
Joined: Sat Jan 12, 2008 7:02 pm
Quick Reply: Yes
Location: /wave

Re: Math - help

Post by SM-Count »

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:
Image
Last edited by SM-Count on Mon Apr 13, 2009 8:03 pm, edited 1 time in total.

User avatar
Jaapii
Loyal Member
Posts: 1542
Joined: Thu Jan 03, 2008 1:45 pm
Quick Reply: Yes
Location: Belgium

Re: Math - help

Post by Jaapii »

Y & Z actually are basicly the same, so if u spend stat points to Y or Z it doesn't matter much lulz :roll:
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?

User avatar
SM-Count
Ex-Staff
Posts: 2761
Joined: Sat Jan 12, 2008 7:02 pm
Quick Reply: Yes
Location: /wave

Re: Math - help

Post by SM-Count »

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)

User avatar
Stress
Ex-Staff
Posts: 4599
Joined: Thu Oct 26, 2006 7:42 am
Quick Reply: Yes
Location: Studying Computer Science, Vienna

Re: Math - help

Post by Stress »

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 :)
Carry your cross, and I'll carry mine.

User avatar
SM-Count
Ex-Staff
Posts: 2761
Joined: Sat Jan 12, 2008 7:02 pm
Quick Reply: Yes
Location: /wave

Re: Math - help

Post by SM-Count »

You can do it without multivariable calculus if you're good at diophantine inspection, saves a lot of time.

User avatar
poehalcho
Elite Member
Posts: 6131
Joined: Mon Apr 30, 2007 3:32 pm
Quick Reply: Yes
Location: ┌(╬ಠ益ಠ)╯( ̄ー ̄)(ノ◕ヮ◕)ノ:・✧(╯°Д°)╯彡┻━┻ψ(`∇´)ψ(☞゚∀゚)☞¯\_(ツ)_/¯ლ(ಥ益ಥლ)ԅ༼ ◔ڡ◔༽งヽ༼ʘ̚ل͜ʘ̚༽ノᕕ(ᐛ)ᕗ( ͡° ͜ʖ ͡°)

Re: Math - help

Post by poehalcho »

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.
Image
Day[9] wrote:"Tea is a lot like gold expansions - it helps you kill people."
- Day[9] Daily 337 -

User avatar
Jaapii
Loyal Member
Posts: 1542
Joined: Thu Jan 03, 2008 1:45 pm
Quick Reply: Yes
Location: Belgium

Re: Math - help

Post by Jaapii »

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 :D)
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.

User avatar
NuclearSilo
Forum God
Posts: 8834
Joined: Mon Aug 21, 2006 12:00 pm
Quick Reply: Yes
Location: Age of Wushu

Re: Math - help

Post by NuclearSilo »

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 :roll:
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

User avatar
Snoopy
Senior Member
Posts: 4016
Joined: Sat Dec 22, 2007 8:50 am
Quick Reply: Yes
Location: Australia

Re: Math - help

Post by Snoopy »

Just seeing all these numbers makes me feel ill.
<< banned for racism. -cin >>

Post Reply

Return to “Off Topic Lounge”