Python Forum
Formule radioactive decay - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Formule radioactive decay (/thread-18737.html)



Formule radioactive decay - bghys - May-29-2019

Hello

Is there somebody who can help me to put the formula of radioactive decay into python?
I'm using PyCharm 2018.

I want to give the exact time and the activity before a synthesis and after the synthesis.
I want to calculate the yield, but for that I have to use the formule of radioactive decay...

N(t) = N(0) * 1/2 ^ (t/half life)


RE: Formule radioactive decay - Gribouillis - May-29-2019

Try
N = N0 * (1 / 2) ** (t / half_life)



RE: Formule radioactive decay - bghys - May-29-2019

(May-29-2019, 05:00 PM)Gribouillis Wrote: N = N0 * (1 / 2) ** (t / half_life)

Thanks!