Question: Python write a function to compute an approxiation to f(a) where f:R2R. Write a function approxGrad (f,v,h) which returns an approximation to the gradient of
Python
write a function to compute an approxiation to f(a) where f:R2R. Write a function approxGrad (f,v,h) which returns an approximation to the gradient of the function f at the point v using a change in x and y of . f will be a function of two variables and v will be a list [a,b] giving the coordinates of the point at which you will approximate the gradient of f. Your function must return a tuple of length 2 whose first element is an approximation to xf(a,b) computed using xf(a,b)hf(a+h,b)f(a,b) and whose second element is an approximation to yf(a,b) computed using yf(a,b)hf(a,b+h)f(a,b)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
