import matplotlib.pyplot as plt x = 0 y = 1 lx=[] ly=[] for i in range(100): y =1.1*y -0.2*x/y x=x+0.1 lx.append(x) ly.append(y) print(lx) print(ly) fig = plt.figure() ax = fig.add_subplot(111) ax = ax.plot(lx,ly) plt.show()
1.1, 1.191818181818182, 1.277437833714722, 1.35821259956029, 1.4351329186577972, 1.5089662535663324, 1.580338237655218, 1.6497834310477122, 1.717779347860088, 1.7847708324979834, 1.8511887110822296, 1.917465025144291, 1.984046272046332, 2.0514055684725467, 2.1200543441219546, 2.190553971934533, 2.2635275998130764, 2.339672339345207, 2.419771873967288, 2.504709464330856, 2.595481249764899, 2.6932096736597324, 2.7991568033689833, 2.914737281245499, 3.0415306441486285, 3.181292795402083, 3.335966513495211, 3.507691036387956, 3.6988109593575618, 3.911884906