Contact Us!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

| Download
Views: 19
Image: ubuntu2004
Kernel: Python 3 (system-wide)
import matplotlib.pyplot as plt
j = [60] a = [140] for i in range(1000): j_old = j[-1] a_old = a[-1] j_new = 0.05*j_old + 0.65*a_old - 52 a_new = 0.45*j_old + 0.68*a_old + 72 j.append(j_new) a.append(a_new)
plt.scatter(range(len(j)),j,label="j") plt.scatter(range(len(a)),a,label="a") plt.legend()
<matplotlib.legend.Legend at 0x7fd3e238feb0>
Image in a Jupyter notebook
j[-1]
2622.3364008423155
a[-1]
3912.6493296881863

this would mean that the values are quite close to the numbers on the graph and would also mean that these numbers are the equilibrium points.