MathGroup Archive 2005

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

Search the Archive

Re: symbolic complex expressions


Hi, 
the answer is simple -
Mathematica assumes that all variables are _complex_ by default. In order to
obtain the desired simplifications, you first have to tell Mathematica that
x, y are real.
The ComplexExpand[] function is well suited for this, see the help
another way is to use Simplify with Assumptions->{x \[Element] Reals}
etc.

Regards, 
highegg

On 20 Jan 05 10:03:32 -0500 (EST), Frank wrote:
>Hi,
>
>I've 2 question with mathematica using symbolic complex expressions.
>
>- Is there a possibility to make from i.e. |x + I y| -> sprt(x^2+y^2)
>if x and y are Real. Abs[] doesn't work?
>
>
>- You've a fraction like this x/(x + I y) and you want to eliminate
>the complex expression in the denominator. 
>i.e. doing something like this: x/(x + Iy)*(x - I y)/(x - I y) ->
(x^2
>- I x y)/(x^2+y^2)
>
>How do you do this with mathematica?  
>
>Thanks,
>
>Frank


  • Prev by Date: Re: symbolic complex expressions
  • Next by Date: Re: symbolic complex expressions
  • Previous by thread: Re: symbolic complex expressions
  • Next by thread: Re: symbolic complex expressions