MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Mathematica loop help

On 13 Mrz., 09:10, Martin Scherer <martin.sche... at gcsc.uni-> wrote:
> Hi Anshu and Bill,
> I'am also very interested in the question whether you could back substitute the solution #i to the FindRoot #i+1 call. Please let me know, if and how you solved the problem!
> The solutions of FindRoot are in the format:
> {as -> 10., hs -> 1., ws -> 30., asl -> 10.0001, wsl -> 31.0003}
> and the starting solution is in format
> startSols := {{as , a}, {hs, h}, {ws, w}, {asl, a}, {wsl, w}}
> I think you need to convert the solutions list to a nested list {{x, number}, ...} again, so it can be used by FindRoot...
> Thank you in advance,
> Greetings,
> Martin

perhaps you ar looking for:

In[30]:= List@@@{as->10.,hs->1.,ws->30.,asl->10.0001,wsl->31.0003}
Out[30]= {{as,10.},{hs,1.},{ws,30.},{asl,10.0001},{wsl,31.0003}}


  • Prev by Date: Re: Map onto a column
  • Next by Date: Re: Grid Wont Show Formulas
  • Previous by thread: Re: Mathematica loop help
  • Next by thread: Re: Mathematica loop help