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


Groups > comp.soft-sys.math.mathematica > #8999 > unrolled thread

Re: Mathematica loop help

Started byMartin Scherer <martin.scherer@gcsc.uni-frankfurt.de>
First post2012-03-13 08:10 +0000
Last post2012-03-14 05:48 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  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

#8999 — Re: Mathematica loop help

FromMartin Scherer <martin.scherer@gcsc.uni-frankfurt.de>
Date2012-03-13 08:10 +0000
SubjectRe: Mathematica loop help
Message-ID<jjmvdg$ckl$1@smc.vnet.net>
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

[toc] | [next] | [standalone]


#9020

Fromroby <roby.nowak@gmail.com>
Date2012-03-14 05:35 +0000
Message-ID<jjpanh$p0n$1@smc.vnet.net>
In reply to#8999
On 13 Mrz., 09:10, Martin Scherer <martin.sche...@gcsc.uni-
frankfurt.de> 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}}

Robert

[toc] | [prev] | [next] | [standalone]


#9035

From"jf.alcover" <jf.alcover@gmail.com>
Date2012-03-14 05:48 +0000
Message-ID<jjpbfk$pap$1@smc.vnet.net>
In reply to#8999
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}}

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web