Template:Team:Paris Saclay/simbox
From 2013.igem.org
(Difference between revisions)
Line 142: | Line 142: | ||
//precomputing | //precomputing | ||
- | simulations[id].reactions[i].precomp_probfactor *= simulations[id].cfactor/simulations[id].volume; | + | simulations[id].reactions[i].precomp_probfactor *= (simulations[id].cfactor/simulations[id].volume); |
if(!simulations[id].molecules[tmpid].const) | if(!simulations[id].molecules[tmpid].const) | ||
{ | { | ||
Line 331: | Line 331: | ||
var reac= sim.reactions[sim.reac_order[i]]; | var reac= sim.reactions[sim.reac_order[i]]; | ||
- | var proba= | + | var proba= reac.precomp_probfactor; |
+ | alert(proba); | ||
for(var j= 0 ; j < reac.inputs.length ; ++j) | for(var j= 0 ; j < reac.inputs.length ; ++j) | ||
proba *= sim.molecules[reac.inputs[j]].quantity; | proba *= sim.molecules[reac.inputs[j]].quantity; |
Revision as of 11:41, 3 August 2013