 
 
 
 
 
 
Re: Simple question
- To: mathgroup at smc.vnet.net
- Subject: [mg48042] Re: Simple question
- From: Jean-Michel Collard <jm at france-paris.org>
- Date: Sat, 8 May 2004 01:23:46 -0400 (EDT)
- References: <c7fi8a$oda$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
George Kamin wrote:
> Hi All,
> This is simple question, but I do not know how to go about searching for it 
> in this user groups data base. I also could not find a reference to the 
> solution in the "Mathematica Book". How does one assign the result of 
> Solve[.] or FindRoot[.] in the form {x1-> 3.14,x2->0.763} to the two 
> variables y1,y2 respectively?? Thanks for any assistance or specific 
> references in the M book. George Kamin 
> 
Read the * Manual i.e the mathematica book :-)
In[1]:=
l={x1->3.14,x2->0.763};
In[8]:=
y1=Last[First[l]]
Out[8]=
3.14
In[9]:=
y1
Out[9]=
3.14
In[10]:=
y2=Last[Last[l]]
Out[10]=
0.763
In[11]:=
y2
Out[11]=
0.763
There's a shorter way,guess :)

