Okay, posting a potentially programming question that might also be related to math.
From my understanding of a
directional derivative, you need to calculate the limit (if it exists) of the equation
.
Here, Duf(x,y) seems to bethe directional derivative, f(x,y) is the function of the plane. A unit vector <a,b> is used to indicate the direction you want to find a gradient.
Please tell me if my understanding is correct: Find the value of a point that is infinitely close to (x
0, y
0) divided by a number that is infinitely close to 0 in the direction of <a,b>.
In my case, f(x,y) is basically a matrix of values. Please refer to the link to see if I missed anything that you need
Questions:
1. How does that function give you the directional derivative? It seems to take
x,y as parameters and output a single scalar value. I was under the impression the directional derivative is a vector...
2. How would I calculate the limit without calculus? I wish to implement a simulation model that uses the directional derivative, but calculating limits is one of the harder problems in programming (along with the rest of calculus). Would substituting a sufficiently small value instead of
h work?
3. Is there a way to find a gradient that doesn't involve limits?
Thank you