User:Bayugoon/Math

Comparator Signal Strength
$$ \text{let s = signal strength} \\ \text{let n = number of slots} \\ \text{let c = count of items in one slot} \\ \text{let L = stack limit of item} \\ \text{let f = percent fullness of one slot (amount of items divided by the stack limit of the item)} \\ \text{let F = percent fullness of container} \\ \text{let a = stacks of items} \\ \text{let b = extra items with stack limit of 64} \\ f = \frac{c}{L}\\ F = \frac{\sum\limits_{i=1}^n f_i}{n} \\ \lfloor s \rfloor = \left \lfloor 1 + 14F \right \rfloor \\ s = 1 + 14F \\ s - 1 = 14F \\ \frac{(s - 1)}{14} = F \\ a = \lfloor nF \rfloor\\ b = \lceil 64(F - a) \rceil $$