dosage_ode, a MATLAB code which sets up and solves 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 GNU LGPL license.
dosage_ode is available in a MATLAB version and an Octave version and a Python version.
matlab_ode, MATLAB codes which set up various ordinary differential equations (ODE).