[Date Index]
[Thread Index]
[Author Index]
Re: Complex Number Simultaneous Equation 2 Unknowns
*To*: mathgroup at smc.vnet.net
*Subject*: [mg31527] Re: Complex Number Simultaneous Equation 2 Unknowns
*From*: "Allan Hayes" <hay at haystack.demon.co.uk>
*Date*: Fri, 9 Nov 2001 06:13:31 -0500 (EST)
*Approved*: Steven M. Christensen <steve@smc.vnet.net>, Moderator
*References*: <9sdnp2$6gs$1@smc.vnet.net>
*Sender*: owner-wri-mathgroup at wolfram.com
Martin,
You have several syntax ettors in the input.
Here it is a corrected version:
Solve[{(2 + 4*I)*a + (1 + I)*b == 118 + 24*I,
(1 + I)*a + (3 + I)*b == 110 + I*0}, {a, b}]
{{a -> 350/37 - (620*I)/37, b -> 957/37 - (229*I)/37}}
Points:
- Two or more equations must be in a list: {eq1, eq2, ..}
- = is used for assignment, == is used for the equality relation
- I0 a single symbol, I 0 is I times 0.
--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565
"Removethisspamtrap_Martin Evans_ and this one too" <mcemail at dial.pipex.com>
wrote in message news:9sdnp2$6gs$1 at smc.vnet.net...
> 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
>
>
> --
>
Prev by Date:
**Re: 2nd order differential equation help**
Next by Date:
**List Manipulation**
Previous by thread:
**Re: Complex Number Simultaneous Equation 2 Unknowns**
Next by thread:
**Re: Complex Number Simultaneous Equation 2 Unknowns**
| |