import math
import matplotlib.pyplot as plt
a=3
b=a+2
x = [i * (10**-a) for i in range(1, (10**b))] # 0を除外して1〜9.9まで
y = [((1+(1/i))**i) for i in x]
plt.plot(x, y)
plt.title("y = e")
plt.xlabel("x")
plt.ylabel("y")
plt.grid(True)
plt.show()
To embed this project on your website, copy the following code and paste it into your website's HTML: