Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var radioactivityProfile = function (years) {
var Bq = {};
Bq.total = 0;
for (var i = 0; i < C.length; i++) {
var Ni = 0;
for (var k = 0; k < C[i].length; k++) {
Ni += C[i][k] * Math.exp(-lambda[k] * years);
}
Bq[chain[i]] = convert.moles(lambda[i] * Math.max(0, Ni)) / (365.25 * 24 * 60 * 60);
Bq.total += Bq[chain[i]];
}
return Bq;
};