blob: 7fb9220344063ff24063fa44df86d4a92fcd01bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clc
// Given that
t = 3.8 // half-life for radon in days
r = 60 // percentage fraction of sample which decayed
// Sample Problem 6 on page no. 12.33
printf("\n # PROBLEM 6 # \n")
printf("Standard formula used \n")
printf(" lambda = 0.693 / t_1/2 (Decay constant) \n N =N_0*e^(-lambda*t) \n")
lambda = 0.693 / t
T = (1 / lambda) * (log(100 / (100 - r)))
printf("\n Time taken for 60 percent decay of sample is %f days.",T)
|