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

MathGroup Archive 2007

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

Search the Archive

Re: Parse results from Solve

  • To: mathgroup at smc.vnet.net
  • Subject: [mg73897] Re: [mg73861] Parse results from Solve
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sat, 3 Mar 2007 00:49:32 -0500 (EST)
  • Reply-to: hanlonr at cox.net

sols= {{x->0,y->0},{x->1,y->2}};

Select[sols,x!=y/.#&]

{{x -> 1, y -> 2}}

Select[sols,y>1/.#&]

{{x -> 1, y -> 2}}


Bob Hanlon

---- nikki_74 <namratashekar at rediffmail.com> wrote: 
> I have used the Solve command to get the solutions for a system of equations. However I want to use these solutions in other commands, such as Reduce and Simplify. 
> 
> For instance, say the output of Solve is,
> sols= {{x->0,y->0},{x->1,y->2}}
> 
> and I want all solutions where x!=y , or , all solutions where y>1. 
> 
> Can anybody help with this? Thanks!



  • Prev by Date: Re: change filename automatically in Export Command
  • Next by Date: Conversion to html problems
  • Previous by thread: Parse results from Solve
  • Next by thread: Re: Parse results from Solve