Re: Help
- To: mathgroup@smc.vnet.net
- Subject: [mg11154] Re: Help
- From: Allan Hayes <hay@haystack.demon.co.uk>
- Date: Mon, 23 Feb 1998 21:41:12 -0500
- References: <6cnb8b$bit@smc.vnet.net>
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