MathGroup Archive 2011

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

Search the Archive

Re: Only real data


Hi.

Say:

lst = {2, 3/4, Pi, E, 3 + 4*I, Sqrt[-I], Sqrt[-1], 5 + Pi*I,
Sin[Pi*I], Exp[I*Pi], I^I, I*Log[I], BesselJ[0, 2]};

Then one way to proceed is the following:

Select[lst, Element[#,Reals] & ]

{2, 3/4, Pi, E, -1, I^I, -(Pi/2), BesselJ[0, 2]}


Best Regards







  • Prev by Date: Remark on closing the lernel
  • Next by Date: Levene and BrownForsythe Tests
  • Previous by thread: Re: Only real data
  • Next by thread: Re: Only real data