Difference between revisions of "Talk:Charging"

From NetHackWiki
Jump to navigation Jump to search
(blessed charging == blessed scroll of charging)
(Cumulative estimate: new section)
Line 2: Line 2:
  
 
: Only the BUC status of the charging scroll (or PYEC) matters. [[User:Tjr|Tjr]] 14:31, June 1, 2010 (UTC)
 
: Only the BUC status of the charging scroll (or PYEC) matters. [[User:Tjr|Tjr]] 14:31, June 1, 2010 (UTC)
 +
 +
== Cumulative estimate ==
 +
 +
''<font face="serif">"And thus the expected average, per wand, is 4.62 charges before the wand explodes."</font>''
 +
 +
This was a somewhat tentative estimate; while the other was [[wikipedia:Binomial_probability|fairly easy]] to calculate (just the odds of it never exploding), this one was driving me nuts because of NetHack clipping it. Pretty sure the overall odds would be whatever averages to 50%<sup>*</sup>. It's just basic algebra to reduce this:
 +
 +
<math>0.5 = \frac{x^3}{343}</math>
 +
 +
<math>0.5 \times 343 = x^3</math>
 +
 +
<math>171.5 = x^3</math>
 +
 +
<math>\sqrt[3]{171.5} \approx 5.555903682</math>
 +
 +
''However'', since NetHack clips it (there is no way to charge something 4.2 times, for example) it muddies things. I [http://nethack.wikia.com/index.php?title=Charging&oldid=50260#Wands just interpolated] between the two known points. Something about that figure (the [[wikipedia:Math_markup|LaTeX]] above) just seems too high. I thought to [[wikipedia:Wikipedia:Be_bold_in_updating_pages|be bold]] and just add the interpolated figure—if it's not correct, it's probably also not that far off.
 +
 +
: <code>*</code> Through iteration, I'd be here until the end of time trying to get the average otherwise; nothing prevents it from failing at 0.29% forty billion times in a row, spare RNG's [[wikipedia:Pseudorandom_number_generator#Periodicity|period]].
 +
 +
<p style="text-align:right">[[User:Feagradze|Feagradze]] 05:47, June 26, 2010 (UTC)</p>

Revision as of 05:47, 26 June 2010

When we say "blessed charging" do we mean only the item doing the charging - say a scroll of charging - is blessed or does the BUC of the item to be charged factor in any case other than the lanterns? --FJH 14:16, June 1, 2010 (UTC)

Only the BUC status of the charging scroll (or PYEC) matters. Tjr 14:31, June 1, 2010 (UTC)

Cumulative estimate

"And thus the expected average, per wand, is 4.62 charges before the wand explodes."

This was a somewhat tentative estimate; while the other was fairly easy to calculate (just the odds of it never exploding), this one was driving me nuts because of NetHack clipping it. Pretty sure the overall odds would be whatever averages to 50%*. It's just basic algebra to reduce this:

0.5 = \frac{x^3}{343}

0.5 \times 343 = x^3

171.5 = x^3

\sqrt[3]{171.5} \approx 5.555903682

However, since NetHack clips it (there is no way to charge something 4.2 times, for example) it muddies things. I just interpolated between the two known points. Something about that figure (the LaTeX above) just seems too high. I thought to be bold and just add the interpolated figure—if it's not correct, it's probably also not that far off.

* Through iteration, I'd be here until the end of time trying to get the average otherwise; nothing prevents it from failing at 0.29% forty billion times in a row, spare RNG's period.

Feagradze 05:47, June 26, 2010 (UTC)