MathGroup Archive 1996

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

Search the Archive

Re: Complex numbers

In article <57tvhr$k0f at>, Wouter Dobbelaere
<Wouter.Dobbelaere at> wrote:

> Hi,
> Is there a way to calculate the real or imaginary part of a complex
> expression symbolically (assuming real numbers as parameters) like:
> Re[x + I y] = x
> The standard Re function doesn't seem to allow that. Maybe some
> extensions exist?
> Regards,
> Wouter Dobbelaere

You can use Complex Expand to do what you want:

    expr= Re[x + I y]



"ComplexExpand[expr] expands expr assuming that all variables are real. 
ComplexExpand[expr, {x1, x2, ... }] expands expr assuming that variables 
matching any of the xi are complex."



I hope this helps.


Ian Collier
Wolfram Research, Inc.
tel:(217) 398-0700   fax:(217) 398-0747    ianc at
Wolfram Research Home Page:

  • Prev by Date: Re: 3D data plot
  • Next by Date: Re: Re psrender type 11 error
  • Previous by thread: Complex numbers
  • Next by thread: Abs[]