www/includes/formulas.php

changeset 96
107c12c3e49d
parent 94
295c3af2a421
child 100
08c92cb740b9
equal deleted inserted replaced
95:8dc0a00b1db4 96:107c12c3e49d
127 127
128 128
129 /* 129 /*
130 * sugars is the total extract weight of sugars. 130 * sugars is the total extract weight of sugars.
131 */ 131 */
132 function estimate_og($sugars, $batch_size) { 132 function estimate_sg($sugars, $batch_size) {
133 $plato = 100 * $sugars / $batch_size; 133 $plato = 100 * $sugars / $batch_size;
134 $sg = plato_to_sg($plato); 134 $sg = plato_to_sg($plato);
135 135
136 /* Average loops, HansH 5x. Brouwhulp 20x, about 10x is enough so keep 20. */ 136 /* Average loops, HansH 5x. Brouwhulp 20x, about 10x is enough so keep 20. */
137 for ($i = 0; $i < 20; $i++) { 137 for ($i = 0; $i < 20; $i++) {

mercurial