summaryrefslogtreecommitdiff
path: root/2939/CH4/EX4.29/Ex4_29.sce
blob: c1e70d45a0b088d5f3f18ac0df0743d17cc30719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

// Ex4_29
clc;

// Given:
t=3.82;// in days
// Solution:
// part(a)
days=1;
D1=(1-(exp(-0.693*days/t)))*100;
printf("\n The fraction decayed in 1 day will be %f.",D1)
// part(b)
days=5;
D1=(1-(exp(-0.693*days/t)))*100;
printf("\n The fraction decayed in 5 days  will be %f.",D1)
// part(c)
days=10;
D1=(1-(exp(-0.693*days/t)))*100;
printf("\n The fraction decayed in 10 days  will be %f.",D1)
// part(d)
days=6*t;
D1=(1-(exp(-0.693*days/t)))*100;
printf("\n The fraction decayed in 6 half lives will be %f.",D1)
// part(e)
n=log(0.001)/log(0.5);
printf("\n Time needed for the decay of 99.9 percent is %f half lives i.e.%f days.",n,t*n)