blob: 4e2e62ad12ca3640e69cc61bf97fa52b7fe9ead2 (
plain)
1
2
3
4
5
6
7
8
9
|
//Example 31.4
t_half=5730;//Half-life of Carbon-14 (y)
lambda=0.693/t_half;//Decay constant (1/y)
t=-log(0.92)/lambda;//Calculated age (y)
//Above formula is obtained after mathematical simplification of Equation 31.38
printf('The age of the Shroud of Turin = %0.1f years',t)
//The answer varies due to round off error
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest
|