{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Dimerization\n", "\n", "Make a model of dimerization (that is not reversible)\n", "- t is the time (which will be ignored, but scipy requires us to have it)\n", "- y is the vector of variables P1, P2, and P1P2\n", "- params is the vector of model parameters kbin\n", "\n", "Run the model with \n", "- an initial concentration of 2 for P1, 1 for P2, and 0 for P1P2\n", "- kbin=0.1\n", "- for time steps 0 to 10 (with a step of 0.1)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "import scipy.integrate\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Plot the results, labeling as in HW2." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "import matplotlib.pyplot as plt\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Reversible Dimerization\n", "\n", "Make a model of dimerization that includes the reverse reaction\n", "- t is the time (which will be ignored, but scipy requires us to have it)\n", "- y is the vector of variables P1, P2, and P1P2\n", "- params is the vector of model parameters kbin and kunbin\n", "\n", "Run the model with \n", "- an initial concentration of 2 for P1, 1 for P2, and 0 for P1P2\n", "- kbin=0.1, kunbin=0.05\n", "- for time steps 0 to 10 (with a step of 0.1)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Code here" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Plot it." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Code here" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.5" } }, "nbformat": 4, "nbformat_minor": 4 }