import math
import numpy as np
import matplotlib.pyplot as plt
y = 1
x = 0
xx = [0] * 101
yy = [0] * 101
for i in range (1,101):
y = 1.1 * y - 0.2 * x / y
x = x + 0.1
xx[i] = x
yy[i] = y
print(yy[i],xx[i])
plt.plot(xx,yy)
plt.show()
运行结果如下图: