RE: Help
- To: mathgroup@smc.vnet.net
- Subject: [mg11148] RE: [mg11115] Help
- From: "Barthelet, Luc" <lucb@ea.com>
- Date: Mon, 23 Feb 1998 21:41:07 -0500
is this what you want to do: sol = {a -> 32, a -> -22, a -> 49}; Select[ sol, a>0 /.#&] {a->32,a->49} >-----Original Message----- >From: Colin L C Fu [SMTP:es2136@eng.warwick.ac.uk] To: mathgroup@smc.vnet.net >Sent: Sunday, February 22, 1998 11:56 AM >To: mathgroup@smc.vnet.net >Subject: [mg11115] Help > >Hiya, > > >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. > >The code that I wrote is > >aList = Re[Last/@Flatten[%]]; >aList = Select[%, #>0 &];*) > >For[ > m = 1, m < size, m++, aList[[m]] >]; > > >Howver, it doesnt seem to work the way I want. > >Thanks > >Colin >