Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 626 Bytes

ex_ODEModel.rst

File metadata and controls

18 lines (12 loc) · 626 Bytes

Example: ODEModel for Reaction Kinetics

Below is an example of how to use the :class:`symfit.core.models.ODEModel`. In this example we will fit reaction kinetics data, taken from libretexts.

The data is from a first-order reaction \text{A} \rightarrow \text{B}.

.. literalinclude:: ../../examples/ode_reaction_kinetics_simple.py
    :language: python

This is the resulting fit:

ODE Fit to kinetics data