Re: Mathematica loop help
- To: mathgroup at smc.vnet.net
- Subject: [mg125459] Re: Mathematica loop help
- From: "jf.alcover" <jf.alcover at gmail.com>
- Date: Wed, 14 Mar 2012 00:43:33 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <jjmvdg$ckl$1@smc.vnet.net>
Le mardi 13 mars 2012 09:10:24 UTC+1, Martin Scherer a =E9crit : > 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 Le mardi 13 mars 2012 09:10:24 UTC+1, Martin Scherer a =E9crit : > 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 Le mardi 13 mars 2012 09:10:24 UTC+1, Martin Scherer a =E9crit : > 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 Le mardi 13 mars 2012 09:10:24 UTC+1, Martin Scherer a =E9crit : > 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 Is this what you want : In[1]:= sols = {as -> 10., hs -> 1., ws -> 30., asl -> 10.0001, wsl -> 31.0003} ; In[2]:= startSols = List @@@ sols Out[2]= {{as, 10.}, {hs, 1.}, {ws, 30.}, {asl, 10.0001}, {wsl, 31.0003}}