blob: f607293bc781a33c584c5d34432311bd5344d33e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//Chapter-5,Example 6,Page 123
clc();
close();
t_half=1600 //half life period
k=0.693/t_half //rate constant
a=100
x= 80
t=(2.303/k)*log10(a/(a-x))
printf('\n the time taken t = %.2f years', t)
//mistake in textbook
|