MathGroup Archive 1993

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

Search the Archive

Re: Differrence between version 2.03 and 2.1?

  • To: mathgroup at yoda.physics.unc.edu
  • Subject: Re: Differrence between version 2.03 and 2.1?
  • From: John Lee <lee at math.washington.edu>
  • Date: Thu, 25 Feb 93 12:43:14 -0800

Leon Poon <poon at chaos.umd.edu> writes:

> 	While I have your attention, I wonder if you know an
> easy way to turn the solutions of a Solve from a list of 
> replacement rules to simply elements of a list. Suppose
> Solve[x==f[x],{x}]={{x->a},{x->b},{x->c}}, I want the list
> {a,b,c} instead. I have come up with a cumbersome way of
> doing this which is
> solns=Table[x/.Flatten[solnlist=Solve[x==f[x],{x}]][[i]],
> 	{i,Length[solnlist]}]
> but I know there must be a better way.

Try this:

  Out[72]= {{x -> a}, {x -> b}, {x -> c}}

  In[73]:= x /. %

  Out[73]= {a, b, c}

Jack Lee
Dept. of Mathematics
University of Washington
Seattle, WA





  • Prev by Date: Re: Differrence between version 2.03 and 2.1?
  • Next by Date: Ordering Mma book
  • Previous by thread: Re: Differrence between version 2.03 and 2.1?
  • Next by thread: Residues in Mathematica