数学建模例题2.57 画出三维表面图

`import pylab as plt
import numpy as np
ax=plt.axes(projection='3d')
X = np.arange(-6, 6, 0.25)
Y = np.arange(-6, 6, 0.25)
X, Y = np.meshgrid(X, Y)
Z = np.sin(np.sqrt(X2 + Y2))
surf = ax.plot_surface(X, Y, Z, cmap='coolwarm')
plt.colorbar(surf); plt.show()

print("学号:3005")`

posted on 2024-10-28 12:22  VVV1  阅读(1)  评论(0编辑  收藏  举报