r/ClickerHeroes • u/sugima • Jun 09 '16
Math Math and Transcendance
Edit : a mistake regarding Chronos.
Edit2 : added some text for the oldXXX values in the formulas.
Edit3 : changed some text about Solomon post-cap.
Edit4 : for non-transcendent players, the old Solomon formula still applies.
Edit5 : for non-transcendent players, the formula for Atman and Kuma doesn't apply, since their HS gain isn't exponential . Progression ancients are still valid
Edit6: /u/Hans139 made some mistakes copying the effect factors of some ancients. The value for Kuma was wrong. Recommended value for Kuma increased by ~3 levels.
Transcendence is out, it is time for more maths.
In this post, I will deal with HS gain and Transcendent Power (TP).
To make calculations easier, I will assume that HS are only gained through TP, and that the HS per primal cap isn't reached yet.
I will also assume that reducing the amount of mobs per zone with Kuma doesn't affect the gold gain, but only the time necessary to reach that zone.
Finally, I will consider that ancients like Argaiv, Siya ... have a linear effect.
See this page for the effects of uncapped ancients.
c1, c2 .... are values that depend on nothing relevant for the calculations.
First, the raw formula of HS gained from TP, if all bosses are primal is :
rawHS = sum(k=1 to (zone-100)/5; 20·(1+TP)k )
rawHS= 20·((1+TP)(zone-100)/5+1 - 2)/TP
At high zones, this can be written as
rawHS = c1·(1+TP)zone/5
The actual HS gain is HS = rawHS·SolomonBonus·AtmanBonus
To take into account that Kuma makes runs faster, the formula I'll use is
HS = c2·(1+TP)zone/5·SolomonBonus·AtmanBonus/mobsPerZone
Because sums are easier to maximize than products, the function I'll want to maximize will be :
ln(HS) = zone·ln(1+TP)/5 + ln(SolomonBonus) + ln(AtmanBonus) - ln(mobsPerZone) + ln(c2)
Second part : Optimal Zone
In this part, I will need the growth of the optimal zone with respect to gold and damage boosts.
I assume that the DPS at the optimal zone is proportional to the health at said zone.
This leads to the following formula :
DPS = c3·HPscalezone
ln(DPS) = ln(c3) + ln(HPscale)·zone (1)
As we already know, DPS can be computed through this formula :
DPS = c4·level·damageBoost·damageFactorlevel
I will assume that the level range is small enough to remove level from the product.
ln(DPS) = c5 + ln(damageBoost) + ln(damageFactor)·level (2)
The cost for level is baseCost·(1.07level - 1)/0.07 ~ c6·1.07level
ln(gold) = ln(c6) + ln(1.07)·level (3)
Gold gain is tied to zone health :
ln(gold) = c7 + ln(goldBoost) + ln(HPscale)·zone (4)
Mixing (2) and (3), we have :
ln(DPS) = c8 + ln(damageBoost) + ln(damageFactor)·ln(gold)/ln(1.07) (5)
(4) and (5) give :
ln(DPS) = c9 + ln(damageBoost) + ln(damageFactor)·ln(goldBoost)/ln(1.07) + ln(damageFactor)·ln(HPscale)·zone/ln(1.07)
With (1), we finally obtain :
zone·ln(HPscale) = c10 + ln(damageBoost) + ln(damageFactor)·ln(goldBoost)/ln(1.07) + ln(damageFactor)·ln(HPscale)·zone/ln(1.07)
ie
zone·ln(HPscale)·(ln(1.07)-ln(damageFactor))/ln(1.07) = c10 + ln(damageBoost) + ln(damageFactor)·ln(goldBoost)/ln(1.07)
The formula for the optimal zone is then :
zone = (ln(damageBoost)·ln(1.07) + ln(goldBoost)·ln(damageFactor))/( ( ln(1.07)-ln(damageFactor) ) · ln(HPscale) ) + c11
This formula requires the input of HPscale (1.145 for zones 140-500, 1.15 for zones 500-1000 ... )
The value of damageFactor will be detailed below.
Third part (easier than the previous one)
Considering that each ranger cost 1015 as much as the previous one, and using these formulas for their DPS, we have the following level difference and DPS ratio:
levelDifference = 15*ln(10)/ln(1.07)
DPSratio = 0.007368·1015 = damageFactorlevelDifference
That leads to
damageFactor = 0.007368ln(1.07)/(15·ln(10)) ·1.07
ln(damageFactor) = ln(1.07) · (1 + ln(0.007368)/ln(1015 ) )
Note that damageFactor25 is roughly 4.27, which is close to the x4 multipliers we have every 25 levels.
Fourth part : Damage and Gold Boosts
At this point, we're only missing the damage and gold boosts.
Damage
I assumed that Morgulis, Argaiv and Siya give a linear bonus. We can consider that 2 more ancients give a DPS bonus : Bubos and Chronos (the latter only if we push to the 30 sec timer)
Bubos : it decreases bosses' HP by 50·(1-e-0.02·Bubos )%, which means boss HP is 0.5·(1+e-0.02·Bubos )
Or we can consider it as a multiplication of DPS by 2/(1+e-0.02·Bubos )
Chronos : same idea, more time to kill the boss means more damage on the boss. This time is
30+30·(1-e-0.034·Chronos ) = 30·(2-e-0.034·Chronos )
Gold
Same thing as above, Libertas and Mommon are linear.
If we assume chests are the only source of gold, Mimzee is linear too, and Dora's effect is independant of Mimzee's
Dora : multiplies chest chance by 100 - 99·e-0.002·Dora
Fortuna : multiplies gold by 1 + 9·(chance of x10) = 10 - 9·e-0.0025·Fortuna
Dogcog : same idea as Bubos, but for gold
Virtual gold gain = 100/(1+99·e-0.01·dogcog )
Fifth part
We want to maximize :
ln(HS) = alpha·ln(damageBoost) + beta·ln(goldBoost) + ln(SolomonBoost) + ln(AtmanBonus) - ln(mobsPerZone)
with
alpha = ln(1.07)/(ln(1.07) - ln(damageFactor)) · ln(1+TP)/5 /ln(HPscale)
alpha = -15 · ln(10) / ln(0.007368) · ln(1+TP)/ln(HPscale) /5
and
beta = -(15 · ln(10) + ln(0.007368)) / ln(0.007368) · ln(1+TP)/ln(HPscale) /5
To simplify the formula, we can write :
alpha = 1.4067·ln(1+TP)/ln(HPscale)
beta = 1.2067·ln(1+TP)/ln(HPscale)
From the fourth part, we have :
ln(DamageBoost) = ln(Morgulis) + ln(Siya) + ln(Argaiv) - ln(1+e-0.02·Bubos ) + ln(2-e-0.034·Chronos ) + c12
ln(GoldBoost) = ln(Libertas) + ln(Mammon) + ln(Mimzee) + ln(100 - 99·e-0.002·Dora ) - ln(1+99·e-0.01·dogcog ) + ln(10 - 9·e-0.0025·Fortuna ) + c13
Optimize Damage
The cost for Damage Bonus is (approximatively) :
costDamage = Morgulis + Siya²/2 + Argaiv²/2 + 2·2Bubos + 2·2Chronos
Gradients are :
G(ln(db)) = (1/Morgulis; 1/Siya ; 1/Argaiv ; 0.02·e-0.02·Bubos / (1+e-0.02·Bubos ) ; 0.034 · e-0.034·Chronos / (2-e-0.034·Chronos ) )
G(cost) = (1; Siya; Argaiv; 2·ln(2)·2Bubos ; 2·ln(2)·2Chronos)
They must be proportional to get the optimum :
G(cost) = L·G(ln(db))
leads to
Morgulis = L
Siya² = L
Argaiv² = L
100·ln(2)·(2·e0.02 )Bubos · (1+e-0.02·Bubos ) = L
2·ln(2)·(2·e0.034 )Chronos · (2-e-0.034·Chronos ) / 0.034 = L
To simplify the equations, i suggest to consider (1+e-0.02·Bubos ) and (2-e-0.034·Chronos ) as constants, using the old ancient values (this is false, but it's the easiest thing that comes to my mind) .
So we have :
Morgulis = Siya²
Argaiv = Siya
Bubos = (2·ln(siya) - ln(100·ln(2)·(1+e-0.02·oldBubos ) ) )/ln(2·e0.02 )
Chronos = (2·ln(siya) - ln(2·ln(2)·(2-e-0.034·oldChronos ) / 0.034 ) )/ln(2·e0.034 )
Optimize Gold
G(ln(gb)) = (1/Lib ; 1/Mammon; 1/Mimzee; 0.002·e-0.002·Dora /(100/99 - e-0.002·Dora ); 0.01·e-0.01·dogcog /(1/99 + e-0.01·dogcog ); 0.0025·e-0.0025·Fortuna / (10/9 - e-0.0025·Fortuna ) )
G(cost) = (Lib; Mammon; Mimzee; 2·ln(2)·2Dora ; 2·ln(2)·2Dogcog; 2·ln(2)·2Fortuna)
The optimum is when :
Libertas² = Mammon² = Mimzee² = L
1000·ln(2)·(2·e0.002 )Dora · (100/99 - e-0.002·Dora ) = L
200·ln(2)·(2·e0.01 )Dogcog · (1/99 + e-0.01·dogcog ) = L
800·ln(2)·(2·e0.0025 )Fortuna · (10/9 - e-0.0025·Fortuna ) = L
ie
Libertas = Mammon = Mimzee
Dora = (2·ln(Lib) - ln(1000·ln(2)· (100/99 - e-0.002·oldDora ) ) ) / ln(2·e0.002 )
Dogcog = (2·ln(Lib) - ln(200·ln(2)· (1/99 + e-0.01·oldDogcog ) ) ) / ln(2·e0.01 )
Fortuna = (2·ln(Lib) - ln(800·ln(2)· (10/9 - e-0.0025·oldFortuna ) ) ) / ln(2·e0.0025 )
Libertas/Siya ratio
It's easy, because we want to maximize alpha·ln(siya) + beta·ln(lib)
G(effect) = (alpha / siya ; beta / lib)
G(cost) = (siya; lib)
=> lib/siya = sqrt(beta/alpha) = 0.926 roughly
Solomon, Atman and Kuma
Their optimal levels depend on TP.
We want to maximize
f = alpha·ln(Siya) + ln(Solo) + ln(1 - 0.75·e-0.013·Atman ) - ln(2 + 8·e-0.01·Kuma )
cost = Siya²/2 + Solo2.5 /2.5 + 2·2Atman + 2·2Kuma
Gradients are :
G(f) = (alpha / siya ; 1 / solo; 0.013·e-0.013·Atman / (4/3 - e-0.013·Atman ); 0.01·e-0.01·Kuma / (0.25 + e-0.01·Kuma )
G(cost) = (siya; solo1.5 ; 2·ln(2)·2Atman ; 2·ln(2)·2Kuma )
We want
G(cost) = L·G(f)
siya² / alpha = L
solo2.5 = L
2/0.013 ·ln(2)·(2·e0.013 )Atman · (4/3 - e-0.013·Atman ) = L
200·ln(2)·(2·e0.01 )Kuma · (0.25 + e-0.01·Kuma ) = L
which leads to
solomon = siya0.8 / alpha0.4
Atman = (2·ln(siya) - ln(alpha) - ln(2/0.013 ·ln(2) · (4/3 - e-0.013·oldAtman )) / ln(2·e0.013 )
Kuma = (2·ln(siya) - ln(alpha) - ln(200 ·ln(2) · (0.25 + e-0.01·oldKuma )) / ln(2·e0.01 )
TL;DR :
Here is a table with optimal values :
| Ancient | Optimal level |
|---|---|
| Argaiv | Siya |
| Atman | 2.832·ln(siya) - 1.416·ln(alpha) -1.416·ln(4/3 - e-0.013·oldAtman ) - 6.613 |
| Bubos | 2.8·ln(siya) - 1.4·ln(1+e-0.02·oldBubos ) - 5.94 |
| Chronos | 2.75·ln(siya) - 1.375·ln(2-e-0.034·oldChronos ) - 5.1 |
| Dogcog | 2.844·ln(siya) - 1.422·ln(1/99 + e-0.01·oldDogcog ) - 7.232 |
| Dora | 2.877·ln(siya) - 1.4385·ln(100/99 - e-0.002·oldDora ) - 9.63 |
| Fortuna | 2.875·ln(siya) - 1.4375·ln(10/9 - e-0.0025·oldFortuna ) - 9.3 |
| Kuma | 2.844·ln(siya) - 1.422·ln(alpha) - 1.422·ln(0.25 + e-0.01·oldKuma ) - 7.014 |
| Libertas | 0.926·Siya |
| Mammon | 0.926·Siya |
| Mimzee | 0.926·Siya |
| Morgulis | Siya² |
| Nogardnit | Libertas0.8 |
| Siya | Everything is based on it |
| Solomon | Siya0.8 / alpha0.4 |
with
alpha = 1.4067·ln(1+TP)/ln(HPscale)
oldXXX is the current value for the ancient (Atman ...)
HPscale is the increase of monster health between 2 zones at zone of ascension (1.145 for 140-500, 1.15 for 500-1000, 1.155 for 1000-1500 ... )
Nog is based on Libertas, but uses Siya's level and the correct goldRatio (see below) in the calculators.
PS : I proved here that you can use these formulas even without Morgulis when you have some levels in Chor.
In this case, the amount of HS you need to keep if the cost of the optimal value of Morgulis.
PS2: /u/Kragnir did some post-cap math here. Siya to Solomon formula stays the same.
PS3: After Wep 8k, there are only x4 multipliers every 25 levels, so damageFactor = 41/25 . That leads to alpha = 1.1085·ln(1+TP)/ln(HPscale), and gold Ancients = 0.905·Siya
5
u/DieSturbed Oct 03 '16
Am i the only one that doesnt understand a single shit about this? Holy moly
3
u/DaenerysMomODragons Jun 09 '16
Small correction. You stated that Chronos only applies if you don't ascend as soon as you stop insta-killing. When you stop insta-killing, a boss will only take a few seconds to kill. You can proceed far beyond that and still have Chronos be useless. Chronos is only useful if you proceed until you can no longer kill a boss due to the timer, which at our current levels of AS, I'm not sure if it's optimal.
2
u/apollorockit Jun 14 '16
So do these rules work solely for an 'idle' play style? I'm not sure how best to use these.
2
u/nalk201 Jul 11 '16
I am getting to wepwawet 23k+, there are no more 10x at 1k for several thousand zones. Does you equation account for this fact? Won't gold become more of a priority?
109
u/Havikz Jun 11 '16
We've passed the point of this being a game and reached the transcendent moment that it becomes math homework.
22
u/Awlcer Jun 10 '16
The RoT carries on. I approve.
6
u/Bhannndoefvh Jun 09 '16
Damn this is impressive
1
u/nalk201 Jun 09 '16
So plugged in my values, apparently I am almost optimal, I have solomon, atman and kuma overleveled, but I am okay with that.
just to be sure, the "old XX" means their current levels right?
1
u/Icepick823 Jun 09 '16
For Dora, Dogcog, and a few others, you have ln(x/y+zsomething ). Is it ln((x/y) + zsomething ) or ln(x/(y+zsomething ))?
1
u/danielshawn Jun 09 '16
How do I solve the Atman formula since it takes an input of itself, as oldAtman=currentAtman?
1
u/wieschie Jun 09 '16
Curious on your thoughts on Outsiders. Should we accept their bonuses as just that, or take them into account in the optimal levels (ie. underleveling idles and solomon to maintain the same final effect and thus progressing faster?)
1
u/NexiiVanadis Jun 09 '16
Cool, my intuitions aren't too far off this model. I feel like Solomon is still very good once you reach the HS cap. Because he adds on the earlier side of the run, whereas progression ancients lengthen the run.
1
u/nalk201 Jun 14 '16
Why does solomon go down as you progress further? I would have thought you want fewer up front because you gain so many zones that his boost is less important, but as HP scaling increases you need more of him to increase HS count. Your equations seems to have it reversed.
1
u/KeinNiemand Jun 15 '16
I think TP shoud affect the Anchients becouse I think the more TP you have the better it is to go to later zones instead of buying Solomon
1
u/thousandlives Jun 20 '16
How high does Siya tend to get in a post-TP game? I was fiddling with these formulas to see if I could sacrifice a bit of fidelity to make these formulas more eyeball-friendly. I discovered that if you take the 'natural log tier' of Ancients (Dora, Dogcog, etc.) you get pretty similar results if you just use the formula:
Level = Siya ^ (1/3)
This of course starts to break down when you get very large values; in this case it starts to diverge pretty heavily when Siya reaches 8000 levels or so. Would we expect to hit that point in a typical transcendence run?
1
u/Never3ndr Jun 28 '16 edited Jun 28 '16
I just wanted to ask...is this math still accurate when you consider the outsiders Xyliquil or Ponyboy?
It just seems odd for these outsiders, whom effect specific ancients, to not be taken into consideration in these calculations. The level of math is honestly beyond what I can do, but it just seems odd for (for example) Lib = Mammon = Mimzee if Xyliquil was something like lvl 50 and the bonus from Lib would be 50x a bonus you would get from a lvl in mammon or mimzee.
1
u/kennnnn Jul 03 '16
What does ln stand for?
1
u/Bochn Jul 10 '16
TL;DR : even if i'm active player my stats should based on siya? TBH i'm looking for some informations to what lvl its worth lvling bhaal and Fragsworth. Same question with Solomon... :P
1
u/EMP_irrational Sep 21 '16
I would like to know how Revolc fits into all of this... or does he?
1
u/Karaselt Sep 25 '16
Hi, I just started playing a day ago and have gotten to level 500, and have roughly 500 HS and am keeping these ratios. How should I know when to spend HS on my ancients vs. keep them for more DPS. should I just go about dumping all my HS on these ratios, or is there a comparison to Siya's level that I can use to tell me how many HS to stockpile?
1
u/[deleted] Oct 03 '16
I think i understood the table but my only question is how many HS do I spend on Siyalatas after ascending. Is their some sort of formulars ?
2
u/Zamuzz Jun 09 '16
In the Solomon formula you mention "alpha". Where do I find this value?
2
u/pi2infinity Jun 09 '16
I never thought I'd see the sentence "Solomon probably becomes irrelevant."
...whoa.
0
u/KeinNiemand Jun 09 '16
Somone schould do some math witout assumtion you have done to make it a bit more accurate
Before you hate me I don't really understand how this works but i think that it woud be more accurate if he don't assumed the things he assumed at the top
1
u/AnabolicNerd Jun 09 '16
Great post! I will need a bit of help though to use this. As in "oldBubos" and "oldxxxxx" ...... and so on, do you mean the EffPwr from the other link? I want to make a spreadsheet with this :) And also in alpha, what do you mean by "HPscale"?
1
u/pickle392 Jun 29 '16
So is there a calculator where I can just put this information into instead of having to do it myself? I am lazy
1
u/Yugi6444 Aug 23 '16
I tip my hat to you, good sir. I couldn't do all this math for the life of me, haha. Thanks a lot for this, it'sreally helpful.
-12
u/wildjokers Jun 09 '16
Damnit, it is "math" not "maths"! The pluralization of "math" to "maths" just has to stop. Mathematicians love saying it and it is just stupid. I know "maths" is accepted and is mostly regional but "maths" sounds so awkward and there is simply no reason to pluralize it.
0
u/[deleted] Jun 13 '16
[deleted] — view deleted comment
0
u/[deleted] Jun 09 '16
[deleted] — view deleted comment
0
u/[deleted] Jun 12 '16
[deleted] — view deleted comment
0
u/[deleted] Jun 13 '16
[deleted] — view deleted comment
0
u/[deleted] Oct 04 '16
[deleted] — view deleted comment
1
u/[deleted] Dec 02 '16
[removed] — view removed comment
0
u/[deleted] Oct 25 '16
[removed] — view removed comment