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

MathGroup Archive 1998

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

Search the Archive

Re: Help



Colin L C Fu wrote:

> I have 3 solutions for a which are
> {a -> 32, a -> -22, a -> 49}.
> 
> I want to use the positive answer to sub in a folowing equation.

Colin,

The following selects the first rule with positive right side.

In[1]:=
aList = Select[sols, #[[2]]>0&,1]

Out[1]=
{a -> 32}

-- 
Allan Hayes
Training and Consulting
Leicester, UK
hay@haystack.demon.co.uk
http://www.haystack.demon.co.uk
voice: +44 (0)116 271 4198
fax: +44 (0)116 271 8642




  • Prev by Date: Possible bug in FindRoot[] in Mathematica 3.0
  • Next by Date: Re: how to pull real numbers out of a linear funktion ?
  • Prev by thread: RE: Help
  • Next by thread: Re: Help