batemaneq package¶
Submodules¶
batemaneq.bateman module¶
-
batemaneq.bateman.
bateman_full
(y0s, lmbd, t, one=1, zero=0, exp=None)[source]¶ Calculates a linear combination of single-parent chains
Generalized helper function for when y0 != [1, 0, 0, … ]
- Parameters
- y0s: array_like
Initial concentrations
- t: float
time
- one: object
object corresponding to one, default(int(1)), could e.g. be
sympy.S('1')()
- zero: object
object corresponding to zero, default(int(0)) could e.g. be
sympy.S('0')()
- exp: callback
Callback calculating the exponential of an argument default: math.exp, could e.g. be
sympy.exp()
-
batemaneq.bateman.
bateman_parent
(lmbd, t, one=1, zero=0, exp=None)[source]¶ Calculate daughter concentrations (number densities) from single parent
Assumes an initial parent concentraion of one (and zero for all daughters)
- Parameters
- lmbd: array_like
decay constants (one per species)
- t: float
time
- one: object
object corresponding to one, default(int(1)), could e.g. be
sympy.S('1')()
- zero: object
object corresponding to zero, default(int(0)) could e.g. be
sympy.S('0')()
- exp: callback
Callback calculating the exponential of an argument default: numpy.exp or math.exp, could e.g. be
sympy.exp()