Answer to Question #268362 in Python for Israel

Question #268362

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

1
Expert's answer
2021-11-18T23:54:08-0500
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)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS