Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5678
| From | dimitris <dimmechan@yahoo.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Only real data |
| Date | 2011-10-16 11:15 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j7eec0$ekc$1@smc.vnet.net> (permalink) |
| References | <j7blu7$34t$1@smc.vnet.net> |
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
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Only real data Jörg Schröder <HB-Kowalczyk-Schroeders@t-online.de> - 2011-10-15 10:05 +0000 Re: Only real data dimitris <dimmechan@yahoo.com> - 2011-10-16 11:15 +0000 Re: Only real data "Dr. Wolfgang Hintze" <weh@snafu.de> - 2011-10-16 11:16 +0000
csiph-web