Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5659

Only real data

From Jörg Schröder <HB-Kowalczyk-Schroeders@t-online.de>
Newsgroups comp.soft-sys.math.mathematica
Subject Only real data
Date 2011-10-15 10:05 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j7blu7$34t$1@smc.vnet.net> (permalink)

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


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