<jupyter_start><jupyter_text>https://www.youtube.com/watch?v=MXUMJMrX2Gw<jupyter_code>import scipy as scp
import scipy.integrate as si 
import numpy as np
import matplotlib.pyplot as plt

def odes(x,t):
    a1 = 3e5
    a2 = 0.2
    a3 = 4e-7
    a4 = 0.6
    a5 = 8
    a6 = 90
    
    A = x[0]
    B = x[1]
    C = x[2]
    
    dAdt = a1 - a2*A - a3*A*C
    dBdt = a3*A*C - a4*B
    dCdt = -a3*A*C - a5*C + a6*B
    
    return [dAdt, dBdt, dCdt]

x0 = [2e6, 0, 90]

t = np.linspace(0,15,1000)
x = si.odeint(odes,x0,t)

A = x[:,0]
B = x[:,1]
C = x[:,2]

plt.semilogy(t,A)
plt.semilogy(t,B)
plt.semilogy(t,C)
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17177914110429449, 'fraction_numerical': 0.0705521472392638, 'mean_word_length': 2.510752688172043, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '453696', 'license': 'MIT', 'n_tokens_mistral': 373, 'n_tokens_neox': 354, 'n_words': 69, 'path': 'python/matplotlib/Scipy/Eq.ipynb', 'repo_name': 'karng87/nasm_game', 'size': '652'}