Could someone please tell me exactly what I need to do, if anything, to the vector calculations given by the Grad[] function to calculate and plot the next subsequent coordinate on a 2D ContourPlot[] using the prior Grad[] function output as input. I would like to continue this process from the beginning given plotted coordinate of P(3,4) to the hottest plotted coordinate of P(0.25,0). Please see attached example and explanation.
I am absolutely sure it is something that I am doing incorrectly or don’t understand and would certainly appreciate some guidance in helping me understand what I am doing incorrectly.
Your solution is absolutely perfect and does exactly what I wanted. Now, I really need to understand exactly what your code is doing and not being as knowledgeable in pure functions as you apparently are, it is causing me a few issues in understanding your solution, so please bear with me.
I see that you are passing 2 parameters into stepFunction from the function - points. In the first iteration, it seems that you are sending two parameters: (the starting point (3,4) and the stepSize of 2) to the function - gradFunc. What I don’t understand is what are you doing with the two parameters in the stepFunction before you execute the gradFunc.
Thanks for the quick and thorough explanation - it is a great help.
I have a couple of other minor questions. Why is there a short segment of red line in the solution and does it mean anything? Secondly, how did you come up with the values of stepSize and nSteps? For example, I found that in playing with the values that even a small change creates a significantly different solution and was curious how you came up with the values.