Radioactive decay of radioactive materials can be modeled by the equation π΄ = π΄0π
βπ‘(ln 2ββ), where
A is the amount of the material at time t, A0 is the amount at time 0, and h is the half-life.
Technetium-99 is a radioisotope that is used in imaging of the brain. It has a half-life of 6
hours. Your program should display the relative amount A/A0 in a patient body every hour for 24
hours after receiving a dose.
Note: With the aid of formatting techniques documented in your note, ensure your program output
matches that given below
mport math
ao = float(input('Enter A0: '))
h = float(input('Enter h: '))
for βt in range(1, 25):
a = ao * math.e ** (-t * (math.log(2) / h))
print('%d: %6f' %(t, a)
Comments
Leave a comment