Re: Output of "Solve" as a list
- To: mathgroup at smc.vnet.net
- Subject: [mg28894] Re: Output of "Solve" as a list
- From: Ioan Alexandre Romoscanu <romoscanu at imes.mavt.ethz.ch>
- Date: Fri, 18 May 2001 01:12:59 -0400 (EDT)
- Organization: Swiss Federal Institute of Technology (ETHZ)
- References: <9cldjh$18e@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
in: data = Solve[x^2 == 4, x] in: solutions = {data[[1, 1, 2]], data[[2, 1, 2]]} in: solutions^3 Doron wrote: > Asking for "Solve" command won't give a list , for example: > > In[23]:= > data = Solve[x\^2 == 4, x] > Out[23]= > {{x -> -2}, {x -> 2}} > > But if I want to use the output , for example : > > In[24]:= > data^3 > Out[24]= > ( ( x -> (-2) }^3, ( (x -> {2) }^3 } . > > the software dosen't consider x-> ... , as a number , > but literally as "x->..." , so when asking data^3 it gives > (x->...)^3 . > > Can anyone help me ? , thank you . -- ___________________________________________ alexandre ioan romoscanu - institut für mechanik CLA G31, eth zentrum, 8092 zürich, schweiz tel. +41 1 632 77 54, +41 76 323 63 05 fax.+41 1 632 11 45, romoscanu at imes.mavt.ethz.ch ___________________________________________