2 years ago
#67638
User
How to find and plot gradient of multiple variables at a given point?
I found gradient of function but I don't know how to plot graph.
import numdifftools as nd
def rosen(xy):
return (xy[0]**2 + xy[1])
grad = nd.Gradient(rosen)([2, 4])
print("Gradient of is ", grad)
python
python-3.x
math
gradient
0 Answers
Your Answer