Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13030

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

From James Stein <mathgroup@stein.org>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How to get the Real and Imaginary part of an expression
Date 2013-01-05 07:16 +0000
Message-ID <kc8k0t$b04$1@smc.vnet.net> (permalink)
References <20130103021627.CBD1368B0@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


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@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
>
>
>
>

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: How to get the Real and Imaginary part of an expression James Stein <mathgroup@stein.org> - 2013-01-05 07:16 +0000

csiph-web