You are on page 1of 2

%Decay Problem

L1=0.1;L2=0.2;t=0:0.1:50;
[N1, N2, N3] = dsolve('DN1=-L1*N1','DN2=L1*N1-
L2*N2','DN3=L2*N2','N1(0)=100','N2(0)=0','N3(0)=0')
N1=eval(N1);
N2=eval(N2);
N3=eval(N3);
plot(t,N1,t,N2,t,N3)
hold
plot(t(N2==max(N2)),max(N2),'x')
title('Radio N1 to N2 & N3')
xlabel('Time')
ylabel('Number of Nuclei')
legend('N1','N2','N3')

>> DR

N1 =

100*exp(-L1*t)

N2 =

(exp(-L1*t)*exp(-L2*t)*((100*L1*L2*exp(L1*t))/(L1 - L2) - (100*L1*L2*exp(L2*t))/(L1 - L2)))/L2

N3 =

exp(-L1*t)*exp(-L2*t)*(100*exp(L1*t)*exp(L2*t) - (100*L1*exp(L1*t))/(L1 - L2) +


(100*L2*exp(L2*t))/(L1 - L2))

Current plot held

>>
Radio N1 to N2 & N3
100
N1
N2
90 N3

80

70

60
Number of Nuclei

50

40

30

20

10

0
0 5 10 15 20 25 30 35 40 45 50
Time

You might also like