MathGroup Archive 2008

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

Search the Archive

Re: Solving complex equations


Hi,

1. Rewrite your equations in the form "something == 0".
2. Then use Re and Im to get real and imaginary parts of the left hand side.
3. Use ComplexExpand to let Mathematica know that you are dealing with
real variables.

On your example it looks like this:
a + b I + c + d I - (3 + 4 I)
ComplexExpand[{Re[%] == 0, Im[%] == 0}]

Result is:
{-3 + a + c == 0, -4 + b + d == 0}

~Maris Ozols~

On Fri, Aug 8, 2008 at 7:12 AM, Adel Elsabbagh <aelsabbagh at gmail.com> wrote:
> Dear all,
>
> If I have a complex equation in the form of
> a+b I + c+d I == 3+ 4 I
> where a, b, c, and d are all assumed to be real.
>
> How do I tell Mathematica 6 to separate the real and imaginary parts to make
> two equations in the form of
> a + c == 3, and
> b + d == 4.
>
> I need this to apply it on a long list of equations.
>
> Thanks in advance!
>
> --
> Adel Elsabbagh
> http://www.svlab-asu.com/aelsabbagh.html
>
>
>


  • Prev by Date: Re: Multiplying a vector over multiple vectors
  • Next by Date: RE: sum question
  • Previous by thread: Re: Solving complex equations
  • Next by thread: Re: Solving complex equations