Jump to content

User:Y5nw: Difference between revisions

m
$...$ -> <math>...</math>
mNo edit summary
m ($...$ -> <math>...</math>)
Line 9: Line 9:
For a one-shot event that fires with a probability of <math>p</math> checked at an interval of <math>T</math> (e.g. tree growth), the expected amount of time <math>t</math> it takes for the event to fire is <math>E(t) = \frac{T}{p}</math>.
For a one-shot event that fires with a probability of <math>p</math> checked at an interval of <math>T</math> (e.g. tree growth), the expected amount of time <math>t</math> it takes for the event to fire is <math>E(t) = \frac{T}{p}</math>.


Note that, in some definition tables in Minetest (e.g. ABMs), the probability is specified using the reciprocal of $p$.
Note that, in some definition tables in Minetest (e.g. ABMs), the probability is specified using the reciprocal of <math>p</math>.


Calculations: Let $q := 1-p$ be the probability of the event ''not'' firing at the next check.
Calculations: Let <math>q := 1-p</math> be the probability of the event ''not'' firing at the next check.


<math>
<math>