FindRoot inside a loop
- To: mathgroup at smc.vnet.net
- Subject: [mg23278] FindRoot inside a loop
- From: "Calle-1, Carlos" <Carlos.Calle-1 at kmail.ksc.nasa.gov>
- Date: Sat, 29 Apr 2000 22:05:21 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
I am trying to solve a parametric equation for different values of x. I would like to plot the solutions as a function of x. I set up a loop (old habits from my grad school days programming in FORTRAN). Since FindRoot has the HoldAll attribute, I am using Evaluate. The Print{%] statement inside the loop outputs -graphics-, which were produced right before the loop starts. The last % correctly outputs the last value computed. Clearly, I don't know enough about how Mathematica stores values and therefore can't extract them. Do I define a function to store the values? But what are the values called when FindRoot solves the equation at each iteration? <<...>> Thanks, Carlos Calle