|
[Date Index]
[Thread Index]
[Author Index]
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
|