MathGroup Archive 1998

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

Search the Archive

Re: Help



Colin 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.

>The code that I wrote is

>  aList = Re[Last/@Flatten[%]];
>  aList = Select[%, #>0 &];*)

>  For[
>   m = 1, m < size, m++, aList[[m]]
>  ];

Colin,
Most likely your solutions will be in the form

b = {{a -> 32}, {a -> -22}, {a -> 49}}

If you want to pick the positive values, try

In[1]:= Select [Table[a/.b[[j]], {j,1,3}], # > 0 &]

Out[1]= {32, 49}

Good luck,

Tomas Garza
Mexico City



  • Prev by Date: Re: 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: summations!