summaryrefslogtreecommitdiff
path: root/1427/CH20/EX20.6/20_6.sce
blob: 75bf88979e6fa74bb59b7fdecaa37194387b8c6c (plain)
1
2
3
4
5
6
7
8
//ques-20.6
//Calculating time for required decomposition
clc
th=3.8;//half-life (in days)
r=1/20;//= N/No
T=0.693/th;//decay constant
t=(2.303/T)*log10(1/r);
printf("The time required is %.2f days.",t);