dosage_ode, a Python code which uses a system of ordinary differential equations (ODE) to simulate the blood levels of a medicinal drug that should stay between medicinal and toxic limits.
The drug level can be modeled by a set of first-order linear differential equations. If we define:
A = medicine_in_intestines, B = plasma_level.then the governing differential equations are:
dA/dt = - absorption_rate * A + intake dB/dt = - excretion_rate * B + absorption_rate * A
The computer code and data files described and made available on this web page are distributed under the MIT license
dosage_ode is available in a MATLAB version and an Octave version and a Python version.
python_ode, Python codes which sets up various systems of ordinary differential equations (ODE).