Template:Team:Paris Saclay/simbox
From 2013.igem.org
(Difference between revisions)
Line 311: | Line 311: | ||
} | } | ||
proba /= Math.pow(sim.volume, reac.inputs.length); | proba /= Math.pow(sim.volume, reac.inputs.length); | ||
+ | |||
+ | alert('BEFORE : reac '+i+ ' proba=' + proba'); | ||
var entier= Math.floor(proba); | var entier= Math.floor(proba); | ||
Line 324: | Line 326: | ||
} | } | ||
} | } | ||
+ | |||
+ | alert('AFTER : reac '+i+ ' proba=' + entier+frac'); | ||
for(var j= 0 ; j < reac.inputs.length ; ++j) | for(var j= 0 ; j < reac.inputs.length ; ++j) |
Revision as of 00:24, 3 August 2013