Only real data
- To: mathgroup at smc.vnet.net
- Subject: [mg122120] Only real data
- From: Jörg Schröder <HB-Kowalczyk-Schroeders at t-online.de>
- Date: Sat, 15 Oct 2011 06:03:21 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
Hello,
I have a problem to exclude complex solutions. I tried
data1={2,3/4,1.3,=E4}
{2,3/4,1.3,=E4}
Cases[data1, Except[_Complex]]
{2,3/4,1.3}
and got, what I expected. But when I have data like
{0,0,-I Sqrt[3],I Sqrt[3]}
The above doesn't work. Is this due to a different Head? Is there an easy
way to filter the non-complex data?
Thanks in advance
Greetings
Joerg
################
Dr. J=F6rg Schr=F6der
Bremen, Germany
- Follow-Ups:
- Re: Only real data
- From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
- Re: Only real data
- From: Heike Gramberg <heike.gramberg@gmail.com>
- Re: Only real data