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


Groups > comp.soft-sys.math.mathematica > #10172 > unrolled thread

Re: Finding the real part of a symbolic complex expression

Started byBob Hanlon <hanlonr357@gmail.com>
First post2012-05-21 09:58 +0000
Last post2012-05-21 09:58 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Finding the real part of a symbolic complex expression Bob Hanlon <hanlonr357@gmail.com> - 2012-05-21 09:58 +0000

#10172 — Re: Finding the real part of a symbolic complex expression

FromBob Hanlon <hanlonr357@gmail.com>
Date2012-05-21 09:58 +0000
SubjectRe: Finding the real part of a symbolic complex expression
Message-ID<jpd3kc$ebs$1@smc.vnet.net>
expr = (a + I b) (c + I d);

Simplify[Re[expr] // ExpandAll, Element[{a, b, c, d}, Reals]]

a c - b d

Re[expr] // ComplexExpand

a c - b d


Bob Hanlon


On Sun, May 20, 2012 at 2:35 AM, Jacare Omoplata
<walkeystalkey@gmail.com> wrote:
> I wanted to find the real part of (a + I b)(c + I d) , assuming a,b,c and d are real, "I" being Sqrt[-1].
>
> So I tried,
>
> Re[(a + I b) (c + I d)] /. Assuming -> Element[{a, b, c, d}, Reals]
>
> Nothing happens. What I get for output is,
>
> Re[(a+I b) (c+I d)]
>
> I found out that I can use the function "ComplexExpand" to expand the expression assuming a,b,c and d to be real. But I'm curious to know if there a way to make Mathematica use "Re" to find the real part?
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web