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


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

Finding the real part of a symbolic complex expression

Started byJacare Omoplata <walkeystalkey@gmail.com>
First post2012-05-20 06:36 +0000
Last post2012-05-21 09:59 +0000
Articles 3 — 3 participants

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


Contents

  Finding the real part of a symbolic complex expression Jacare Omoplata <walkeystalkey@gmail.com> - 2012-05-20 06:36 +0000
    Re: Finding the real part of a symbolic complex expression "Nasser M. Abbasi" <nma@12000.org> - 2012-05-21 09:56 +0000
    Re: Finding the real part of a symbolic complex expression DC <b.gatessucks@gmail.com> - 2012-05-21 09:59 +0000

#10164 — Finding the real part of a symbolic complex expression

FromJacare Omoplata <walkeystalkey@gmail.com>
Date2012-05-20 06:36 +0000
SubjectFinding the real part of a symbolic complex expression
Message-ID<jpa3ea$468$1@smc.vnet.net>
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] | [next] | [standalone]


#10170

From"Nasser M. Abbasi" <nma@12000.org>
Date2012-05-21 09:56 +0000
Message-ID<jpd3gh$eaf$1@smc.vnet.net>
In reply to#10164
On 5/20/2012 1:36 AM, Jacare Omoplata 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?
>

--------------------
expr=(a+I b)(c+I d);
ComplexExpand[Re[expr]]
----------------------
Out[12]= a c-b d

-----------------------------
Assuming[{Element[{a,b,c,d},Reals]},Simplify[Re[Expand[expr]]]]
-----------------------------
Out[15]= a c-b d

--Nasser

[toc] | [prev] | [next] | [standalone]


#10175

FromDC <b.gatessucks@gmail.com>
Date2012-05-21 09:59 +0000
Message-ID<jpd3m9$ecj$1@smc.vnet.net>
In reply to#10164
This works for instance :

Simplify[Re[(a + I b) (c + I d) // Expand], Assumptions -> Element[{a, b, c, d}, Reals]]

[toc] | [prev] | [standalone]


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


csiph-web