Contents
Radioactive Decay Law
The radioactive decay law states that the loss of atoms in a radioactive source per unit time is proportional to the number of radioactive atoms. Thus, letting N represent the number of radioactive atoms in the source (and treating it as a continuous quantity), we have

where
is the decay constant in units of inverse time for a given radionuclide.
clear;close all;clc;
Equations
syms N0 L N(t)
decay_law=-diff(N,t)==L*N
decay_law(t) =
-diff(N(t), t) == L*N(t)
Solution
Nt=dsolve(decay_law,N(0)==N0)
Nt =
N0*exp(-L*t)
Substitute
N0=1e8;
L=2.6742e-6;
t=10*24*60*60;
Nout=subs(Nt,{'N0','L','t'},{N0,L,t});
Nout=double(Nout);
fprintf('Starting with %g atoms at a decay constant of %g 1/s\n',N0,L);
fprintf('After %d days the number of atoms is %g\n',t/24/60/60,Nout);
Starting with 1e+08 atoms at a decay constant of 2.6742e-06 1/s
After 10 days the number of atoms is 9.92108e+06