Python Forum

Full Version: Formule radioactive decay
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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)
Try
N = N0 * (1 / 2) ** (t / half_life)
(May-29-2019, 05:00 PM)Gribouillis Wrote: [ -> ]N = N0 * (1 / 2) ** (t / half_life)

Thanks!