Re: Complex Number Simultaneous Equation 2 Unknowns
- To: mathgroup at smc.vnet.net
- Subject: [mg31542] Re: Complex Number Simultaneous Equation 2 Unknowns
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Fri, 9 Nov 2001 06:14:00 -0500 (EST)
- Approved: Steven M. Christensen <steve@smc.vnet.net>, Moderator
- Organization: Universitaet Leipzig
- References: <9sdnp2$6gs$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, you have to use Equal[] == and *not* Set[] = and you have to collect the equations in a List and Solve[{((2 + 4\[ImaginaryI])*a) + ((1 + \[ImaginaryI])*b) == (118 + 24\[ImaginaryI]), ((1 + \[ImaginaryI])*a) + ((3 + \[ImaginaryI])* b) == 110 + \[ImaginaryI] 0}, {a, b}] work as expected. Regards Jens Removethisspamtrap_Martin Evans_ and this one too wrote: > > I've a simultaneous linear equation with complex numbers i'd like to > put through Mathematica (I'm assuming this is possible!) > > Solve [((2 + 4\[ImaginaryI])*a) + ((1 + \[ImaginaryI])*b) = (118 + > 24\[ImaginaryI]), > > ((1 + \[ImaginaryI])* a) + ((3 + \[ImaginaryI])* > b) = {110 + \[ImaginaryI]0}, > > {a, b}] > > (all on one line but split for some sort of clarity here) > > I get this as the output: > > Set::"write": "Tag \!\(Plus\) in \!\(\(\(\(\((2 + \(\(4\\ \ > \[ImaginaryI]\)\))\)\)\\ a\)\) + \(\(\(\((1 + \[ImaginaryI])\)\)\\ > b\)\)\) is \ > Protected." > > Set::"write": "Tag \!\(Plus\) in \!\(\(\(\(\((1 + \[ImaginaryI])\)\)\\ > a\)\) \ > + \(\(\(\((3 + \[ImaginaryI])\)\)\\ b\)\)\) is Protected." > > General::"ivar": "\!\(110 + \[ImaginaryI]0\) is not a valid variable." > > Solve[118 + 24 \[ImaginaryI], {110 + \[ImaginaryI]0}, {a, b}] > > Any ideas as to what i'm doing wrong as the error messages don't make > it obvious (at least to me as a 4 day old user!!) > > Also I seem to HAVE to use the esc ii esc where i would prefer to use > lower case J (as an electrical eng) is there something special that > needs to be done to use lower case J as in the help files it appears > to be in bold > > --