blob: 5ba8f221facd046c220bf971eef178402a38f664 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clc
// Given that
t = 15 // half-life for Na(23) in hours
r = 93.75 // percentage fraction of sample which decayed
// Sample Problem 3 on page no. 12.32
printf("\n # PROBLEM 3 # \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 93.75 per decay of sample is %d hours.",T)
|