Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1997
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Get answers out of listform

  • To: mathgroup at smc.vnet.net
  • Subject: [mg7432] Re: Get answers out of listform
  • From: Michaela Meier <michaela.j.meier at rz.ruhr-uni-bochum.de>
  • Date: Sat, 31 May 1997 15:08:25 -0400 (EDT)
  • Organization: Ruhr-Universitaet Bochum, Rechenzentrum
  • Sender: owner-wri-mathgroup at wolfram.com

Reidar Sandnes wrote:
> 
> I wonder if anybody can help me with a little problem I've got. I haven't
> used Mathematica for a long time so I have some problems. When I have used
> the command Solve for instance, I get the answer (or output) in {{ }}. I
> wander if there is a way to get answers out of these brackets and in on a
> variabel-name? I would appreciate a simpel answer to this problem.

You can try this 

s=Solve[x^2+x-2==0,x]
l=Length[s]
t=Table[x/.s[[j,1]],{j,1,l}]
t[[1]]
t[[2]]

Michaela


  • Prev by Date: Re: A Plot to Rotate
  • Next by Date: Re: How to output matrix to file
  • Previous by thread: Re: A Plot to Rotate
  • Next by thread: Re: How to output matrix to file