Re: Table of tables
- To: mathgroup at smc.vnet.net
- Subject: [mg113256] Re: Table of tables
- From: Ray Koopman <koopman at sfu.ca>
- Date: Wed, 20 Oct 2010 05:45:32 -0400 (EDT)
- References: <i9m7vt$j5u$1@smc.vnet.net>
On Oct 20, 1:07 am, Luiz Melo <luiz.m... at polymtl.ca> wrote:
> Given
>
> t = {{{-1, -1, -2+2I}, {-1, -1, 3-I}}, {{-1, -1, 4+I}, {-1, -1, -5-5I}}};
>
> how can I extract the imaginary part of the complex elements to obtain
>
> {{{-1, -1, 2}, {-1, -1, -1}}, {{-1, -1, 1}, {-1, -1, -5}}};
>
> thank you.
>
> Luiz Melo
>
> --
t /. u_Complex -> Im[u]