MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Table of tables


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]


  • Prev by Date: Re: Working with ppatterns
  • Next by Date: Re: Working with ppatterns
  • Previous by thread: Table of tables
  • Next by thread: Re: Table of tables