

import matplotlib.pyplot as plt
xx = [0]
yy = [1]
def he(x, y):
for n in range(100):
y = 1.1 * y - 0.2 * x / y
x = x + 0.1
xx.append(x)
yy.append(y)
# print(xx, yy)
he(0, 1)
plt.plot(xx, yy)
plt.show()

1590

被折叠的 条评论
为什么被折叠?



