MathGroup Archive 1993

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

Search the Archive

Make a list out of solutions given by Solve

  • To: mathgroup at yoda.physics.unc.edu
  • Subject: Make a list out of solutions given by Solve
  • From: mcdonald at delphi.umd.edu (William MacDonald)
  • Date: Mon, 1 Mar 93 12:25:06 EST

The simplest way to make a list from solutions provided by Solve is to
use the usual technique for dealing with substitution rules.

In[1]:=
       Solve[(x-a)(x-b)(x-c)==0,x]
Out[1]=
       {{x -> a}, {x -> c}, {x -> b}}
In[2]:=
        solnlist=x/.%
Out[2]=
        {a, c, b}

-- 

William M. MacDonald
Professor of Physics
University of Maryland
Internet: mcdonald at delphi.umd.edu






  • Prev by Date: Plotting question
  • Next by Date: RE: replacement rules and a simple list
  • Previous by thread: Plotting question
  • Next by thread: buggish feature of Plot ???