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



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