Re: Is it a bug?
- To: mathgroup at smc.vnet.net
- Subject: [mg17564] Re: Is it a bug?
- From: paulh (P.J. Hinton)
- Date: Mon, 17 May 1999 02:14:22 -0400
- Organization: Wolfram Research, Inc.
- References: <7hgdfs$4bu@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
In article <7hgdfs$4bu at smc.vnet.net>, "F. Mittermayr" <mitterma at linz.vai.co.at> writes: > A = {1 + Sqrt[2] I , 1 + 2 * 3 I}; > Cases[A, _Complex] > > Out[1] = {1+6 I} > > Isn't it a strange result? No. When in doubt, look at the FullForm of the expression. In[3]:= FullForm[A] Out[3]//FullForm= > List[Plus[1, Times[Complex[0, 1], Power[2, Rational[1, 2]]]], > Complex[1, 6]] The first element in your list has a head of Plus. -- P.J. Hinton Mathematica Programming Group paulh at wolfram.com Wolfram Research, Inc. http://www.wolfram.com/~paulh/ Disclaimer: Opinions expressed herein are those of the author alone.