Team:DTU-Denmark/Achievements/Calculator
From 2014.igem.org
(Difference between revisions)
Tbjohannesen (Talk | contribs) |
Tbjohannesen (Talk | contribs) |
||
Line 56: | Line 56: | ||
- | + | activity1 = (parseFloat(conc)/(parseFloat(CFUcount)/1e12)*(602200/(parseFloat(fold)/100)))*((parseFloat(degenvar))+(parseFloat(growthvar)))/parseFloat(copynumber.value); | |
- | + | activity1 = Math.round(activity1)*10000)/10000; | |
- | if (activity.value <= 0.001 || activity.value >= 1000) { activity.value = | + | if (activity.value <= 0.001 || activity.value >= 1000) { activity.value = activity1.toExponential(2) }; |
activity2.value = parseFloat(activity.value); | activity2.value = parseFloat(activity.value); |
Revision as of 00:49, 18 October 2014