MathGroup Archive 2004

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

Search the Archive

Re: Complex Numbers

  • To: mathgroup at
  • Subject: [mg47435] Re: Complex Numbers
  • From: bobhanlon at (Bob Hanlon)
  • Date: Mon, 12 Apr 2004 03:44:50 -0400 (EDT)
  • References: <c5b0tc$7lc$>
  • Sender: owner-wri-mathgroup at

Simplify[Re[Exp[a I] Exp[b I]], 
  Im[a]==0 && Im[b]==0]

Cos[a + b]

Also look at the standard add-on package Algebra`ReIm`

Bob Hanlon

In article <c5b0tc$7lc$1 at>, Alejandro Vizcarra
<gebankos at> wrote:

<< I always have problems when dealing with complex numbers.  How can i
work with Mathematica in such a way that every expression will
be considered real unless it is declared explicitly complex (like a = 3 + 4 I )
For example if I type 

Re[ComplexExpand[ Exp[a I] Exp[b I]]]

I get the answer

-Im[Sin[ a+b]]+Re[Cos[a+b]]

Instead of simply Cos[a+  b]

  • Prev by Date: Re: FindRoot
  • Next by Date: Re: Complex Numbers
  • Previous by thread: Re: Complex Numbers
  • Next by thread: RE: Complex Numbers