Re: Solving complex equations

*To*: mathgroup at smc.vnet.net*Subject*: [mg91213] Re: [mg91157] Solving complex equations*From*: "Maris Ozols" <marozols at gmail.com>*Date*: Sat, 9 Aug 2008 07:48:17 -0400 (EDT)*References*: <200808081112.HAA11483@smc.vnet.net>

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 > > >

**References**:**Solving complex equations***From:*"Adel Elsabbagh" <aelsabbagh@gmail.com>