[2022 Fall] Assignment6-9¶
Course: AP3021
Q6-9¶
$f(x, y) =e^{−x^{2}y^{2}}+cos(𝑥) +cos(2𝑦)$
using the steepest ascend method.
$f(x_0, y_0) = (-1, -1)$
In [1]:
Copied!
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
%matplotlib inline
fig, ax = plt.subplots(figsize=(20, 15))
img = mpimg.imread('./imgs/6.9.jpg')
imgplot = ax.imshow(img)
ax.xaxis.set_visible(False)
ax.yaxis.set_visible(False)
plt.show()
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
%matplotlib inline
fig, ax = plt.subplots(figsize=(20, 15))
img = mpimg.imread('./imgs/6.9.jpg')
imgplot = ax.imshow(img)
ax.xaxis.set_visible(False)
ax.yaxis.set_visible(False)
plt.show()
In [ ]:
Copied!
Last update:
2024-04-27