Re: Sort Solve Results

• To: mathgroup at smc.vnet.net
• Subject: [mg24593] Re: Sort Solve Results
• From: "Allan Hayes" <hay at haystack.demon.co.uk>
• Date: Tue, 25 Jul 2000 00:56:25 -0400 (EDT)
• References: <8lgth3\$2gr@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```Steven,

If uk is your list of unknowns and sol is the solution from Solve then

Thread[Rule[uk, uk /. sol[[1]]]]

will give what you want.

--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"Steven Scroggin" <scrog at lvcm.com> wrote in message
news:8lgth3\$2gr at smc.vnet.net...
> In writing a small program I am using Solve for a system to be solved for
a
> 9 tuple of unknowns.  I need to work with the results in the order I
> supplied them, but Solve does not return them in the order given.  How do
I
> reshuffle them ?
>
> Specifically, I have
>
> Solve[{SPNames==SPNames.TPM,Apply[Plus,SPNames]==1},SPNames];
>
> Where SPNames is a vector containing the names of the variables to be
solved
> for and TPM is a square matrix.  A typical SPName is p[1].  The system has
a
> unique solution.
>
>
>
> --
> scrog at lvcm.com
> Steven Scroggin
>
>
>

```

• Prev by Date: Re: Newbie
• Next by Date: Re: Confluent hypergeometric functions of matrix argument
• Previous by thread: Sort Solve Results
• Next by thread: Sort Solve's results