指数と対数のグラフを描く。以下ソースコード
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(-10.0, 10.0, 0.02)
plt.plot(x, x**3)
plt.grid()
plt.show()
plt.plot(x, np.log(x**3))
plt.grid()
plt.show()
結果
![](https://sironekolab.com/wp/wp-content/uploads/2022/06/Figure_1-2.png)
![](https://sironekolab.com/wp/wp-content/uploads/2022/06/Figure_2.png)
![](https://m.media-amazon.com/images/I/512KR5MxspL._SL160_.jpg)
![](https://sironekolab.com/wp/wp-content/plugins/yyi-rinker/img/arrow-right.png)
指数と対数のグラフを描く。以下ソースコード
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(-10.0, 10.0, 0.02)
plt.plot(x, x**3)
plt.grid()
plt.show()
plt.plot(x, np.log(x**3))
plt.grid()
plt.show()
結果
コメント