In this problem you will be creating a 3D surface using the pyplot module from matplotlib. The function you will be plot
Posted: Mon Jun 06, 2022 5:07 pm
In this problem you will be creating a 3D surface using the pyplot module from matplotlib.
The function you will be plotting is: 𝑍(𝑥, 𝑦) = 0.3𝑥 + 0.5𝑦 + 4𝑒−0.2√𝑥^2+𝑦^2 cos(√𝑥2 + 𝑦2)
Over the domain: −10 ≤ 𝑥 ≤ 10, −10 ≤ 𝑦 ≤ 10. Use 1000 grid points in the x and y directions.
Your plots must have labels for the x, y, and z axis as well. You will also be modifying the color scheme of the plot by using the “hot” colormap which can be implemented with the following syntax: ax.plot_surface(X,Y,Z,cmap=“hot”).
The function you will be plotting is: 𝑍(𝑥, 𝑦) = 0.3𝑥 + 0.5𝑦 + 4𝑒−0.2√𝑥^2+𝑦^2 cos(√𝑥2 + 𝑦2)
Over the domain: −10 ≤ 𝑥 ≤ 10, −10 ≤ 𝑦 ≤ 10. Use 1000 grid points in the x and y directions.
Your plots must have labels for the x, y, and z axis as well. You will also be modifying the color scheme of the plot by using the “hot” colormap which can be implemented with the following syntax: ax.plot_surface(X,Y,Z,cmap=“hot”).