Template:Team:Paris Saclay/simbox

From 2013.igem.org

(Difference between revisions)
Line 287: Line 287:
  {
  {
   var usedmols= new Array();
   var usedmols= new Array();
-
 
+
   alert(usedmols[1]);
-
   var reac= sim.reactions[sim.reac_order[i]];
+
-
  var proba= reac.probability;
+
-
  for(var j= 0 ; j < reac.inputs.length ; ++j)
+
-
  {
+
-
  var tmp= sim.molecules[reac.inputs[j]].quantity;
+
-
  alert(usedmols[1]);
+
-
  proba *= tmp;
+
-
  }
+
-
  proba /= Math.pow(sim.volume, reac.inputs.length);
+
  }
  }

Revision as of 23:44, 2 August 2013