Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2013

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

Search the Archive

Re: How to get the Real and Imaginary part of an expression

  • To: mathgroup at smc.vnet.net
  • Subject: [mg129326] Re: How to get the Real and Imaginary part of an expression
  • From: James Stein <mathgroup at stein.org>
  • Date: Sat, 5 Jan 2013 02:16:25 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <20130103021627.CBD1368B0@smc.vnet.net>

Re and Im work for me, here is what I tried, giving values to s and z:

Module[{w, s, z},
 s = 5 + 3 I;
 z = 12 - 2 I;
 (w = 882)/(s^2 + 2*z*w*s + w^2)
 ]
Re[%]
Im[%%]

Perhaps I do not understand your question.

On Wed, Jan 2, 2013 at 6:16 PM, Eduardo M. A. M. Mendes <
emammendes at gmail.com> wrote:

> Hello
>
> I need to extract the real and imaginary part of the following expression
>
> (w=882)/(s^2+2*z*w*s+w^2)
>
> where w and z are positive constants.  s is a complex variable.
>
> Applying Re and Im to the expression does not do much.   By hand, one can
> easily find them.
>
> What am I missing?
>
> many thanks
>
> Ed
>
>
>
>


  • Prev by Date: Re: Problem with Expand and Modulus in Mathematica 9?
  • Next by Date: Re: How to get the Real and Imaginary part of an expression
  • Previous by thread: How to get the Real and Imaginary part of an expression
  • Next by thread: Re: How to get the Real and Imaginary part of an expression