# Iterate a user defined function to load Table or ParametricPlot function

Posted 26 days ago
280 Views
|
2 Replies
|
1 Total Likes
|
 I would like to plot series of points on a graph starting at a given point and continuing to the point of greatest magnitude. This could be accomplished by either creating a Table[] of points and then plotting the points, or embedding ParametricPlot[] in the Show[] function. However using either Table[]or ParametricPlot [] functions would require iterating a user defined gradient function and then using the output of the previous iteration as the input to the subsequent iterations and I am not sure how to do that in Mathematica and would appreciate guidance in performing the iterations (see attached notebook).Additional if my whole approach is incorrect, I would be open to any and all suggestions because I am always interested it trying a better method to visualize my calculations. Thank you so much for your assistance. Attachments:
2 Replies
Sort By:
Posted 26 days ago
 Hi Mitchell, iterating a user defined gradient function and then using the output of the previous iteration as the input to the subsequent iterations Nest and related functions can do this e.g. NestList[Normalize@df[Sequence @@ #] &, {3, 4}, 3] (* {{3, 4}, {7/25, -(24/25)}, {527/625, 336/625}, {-(164833/390625), -(354144/390625)}} *) In the attached notebook P1, P2, P3, P4 ignore the sign of the previous term. If that is what you want, just add an Abs.