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(xx[i],yy[i])
plt.plot(xx,yy)
plt.show()

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(xx[i],yy[i])
plt.plot(xx,yy)
plt.show()


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