Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9586
| From | "wb@wavebounce.com" <rob@wavebounce.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Deleting expressions containing a certain head |
| Date | 2012-04-13 08:48 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jm8p89$ip5$1@smc.vnet.net> (permalink) |
I'm not sure this quite meets the challenge. For example, Exp[I Pi} is not Complex but it "has a complex number in it" and appears in the output. Perhaps this is as it should be.
> Getting rid of any expression that has a complex number in it.
>
> How does one go about this?
>
list = {2^(Complex[2, 3]) + 3, 2, 3 x};
Select[list, FreeQ[#, Complex] &]
hth,
albert
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Deleting expressions containing a certain head "wb@wavebounce.com" <rob@wavebounce.com> - 2012-04-13 08:48 +0000 Re: Deleting expressions containing a certain head A Retey <awnl@gmx-topmail.de> - 2012-04-14 07:11 +0000
csiph-web