Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9035

Re: Mathematica loop help

From "jf.alcover" <jf.alcover@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Mathematica loop help
Date 2012-03-14 05:48 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jjpbfk$pap$1@smc.vnet.net> (permalink)
References <jjmvdg$ckl$1@smc.vnet.net>

Show all headers | View raw


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}}

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: Mathematica loop help Martin Scherer <martin.scherer@gcsc.uni-frankfurt.de> - 2012-03-13 08:10 +0000
  Re: Mathematica loop help roby <roby.nowak@gmail.com> - 2012-03-14 05:35 +0000
  Re: Mathematica loop help "jf.alcover" <jf.alcover@gmail.com> - 2012-03-14 05:48 +0000

csiph-web