MathGroup Archive 2004

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

Search the Archive

Re: List of solution


Florian Jaccard wrote:

> Hello !

> C'est très simple :

> In[4]:=
> liste = {{x -> 0, y -> 0}, {x -> 1, y -> 0},
>    {x -> I, y -> 1 + 2*I}}

> Out[4]=
> {{x -> 0, y -> 0}, {x -> 1, y -> 0},
>   {x -> I, y -> 1 + 2*I}}

> In[5]:=
> DeleteCases[liste, {x -> xx_, y -> yy_} /;
>    Im[xx] != 0 || Im[yy] != 0]

> Out[5]=
> {{x -> 0, y -> 0}, {x -> 1, y -> 0}}


The case with 3 real roots Solve[x^3 - 10x + 1 == 0] doesn't seem to work 
fine...


--
0% de pub! Que du bonheur et des vrais adhérents !
Vous aussi inscrivez-vous sans plus tarder!!
Message posté à partir de http://www.gyptis.org, BBS actif depuis 1995.




  • Prev by Date: RE: interpolation
  • Next by Date: Re: How to get non-printing heads?
  • Previous by thread: Re: List of solution
  • Next by thread: Re: List of solution