MathGroup Archive 1998

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

Search the Archive

RE: Help



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
>



  • Prev by Date: Any interest (Wolfram or general) in fast multiply?
  • Next by Date: Re: exponential rule application
  • Prev by thread: RE: Help
  • Next by thread: Re: Help