Post Reply 
equations with complex results
07-03-2015, 12:10 AM
Post: #1
equations with complex results
Hi

how to solve the system

(12+10i)x + (-2-10i)y + (-10+0i)z = (190+110i)
(-2-10i)x + (2+0i)y +(0+10i)z = (0-220i)
(-10+oi)x + (0+10i)y +(10-10i)z = (-190+110i)

Thanks
Find all posts by this user
Quote this message in a reply
07-03-2015, 11:24 AM
Post: #2
RE: equations with complex results
Hi!, fcgaino:

You can get complex results by using the reduced row echelon (RREF) method, of solving, a linear system.

Best Regards.
informach
Find all posts by this user
Quote this message in a reply
07-03-2015, 06:02 PM (This post was last modified: 07-03-2015 06:47 PM by Anders.)
Post: #3
RE: equations with complex results
Hi,

Normally, you can use RREF. Or you can simply use matrix inversion putting the left hand side coefficients in a 3x3 matrix (just call it M1 for simplicity) and the right hand side values into a vector (say M2) and then simply do M1^-1 * M2 and then you have (x y z) in the resulting vector. You can do this directly in home view using [] function.

However, in this specific case the matrix is singular because it turns out that 1 equation is redundant (you can quickly see this by taking the determinate of M1 i.e. DET(M1) which is equal to 0 which means it is singular). You can also see this by doing Gaussian elimination row by row. If you do Gaussian elimination you can in the final step eliminate the last equation all together and the result is actually the entire space that satisfies equation 1 and 2 which is a complex plan in the 3 dimensional complex space:
(12+10i)x + (-2-10i)y + (-10+0i)z = (190+110i)
(-2-10i)x + (2+0i)y +(0+10i)z = (0-220i)

Gaussian elimination is done using the pivot() function and in this case you may want to put the entire system into a 3x4 matrix where the last column is the right hand side in the equation system.

Then pivot(M1,1,1) and the pivot(result of pivot(M1,1,1) matrix, 2, 2) and you get:
[
1640+960i 0 -1640-960i ¦ 33,160+22,160i
0 120-20i -120+20i ¦ 1,480 -520i
0 0 0 ¦ 0
]
This can be simplified further with divisions and displayed in more elegant matrix form with some more linear algebra...
Find all posts by this user
Quote this message in a reply
07-03-2015, 06:34 PM
Post: #4
RE: equations with complex results
Other approach:

If you want find out if your system of equations has independent equations (or how many are dependent) then you can use rank of matrix (which is built in HP Prime too). In your example RANK(M1) is 2, so there are only two independent equations in your system of equations (I assume a31 = (-10+oi) is typo and it should be (-10+0i)).

Prime, 15C CE
Find all posts by this user
Quote this message in a reply
07-04-2015, 12:50 AM
Post: #5
RE: equations with complex results
At HP 48, in Solve linear system, I found the following values

x = 10.09<10.6 degrees
y = 2.45<-55.3 degrees
z = 11.31<179.2 degrees

but, in the HP Prime, i don't find these values.

Thanks
Find all posts by this user
Quote this message in a reply
07-04-2015, 01:55 AM (This post was last modified: 07-04-2015 10:57 PM by Anders.)
Post: #6
RE: equations with complex results
Are you sure the coefficient in the system you gave are correct? Because there is no one single point solution to the system you wrote (it is an entire complex plan of infinite number of solutions). The HP 48 gave a point answer so I do not think you are solving the same system there (some one who have HP 48 can answer this better). In any case the Prime is solving in correctly by using pivot() that I wrote above.
Find all posts by this user
Quote this message in a reply
07-04-2015, 07:51 AM
Post: #7
RE: equations with complex results
You can also use solve() in CAS:

Code:
solve([(12+10i)*x + (-2-10i)*y + (-10+0i)*z = (190+110i), (-2-10i)*x + (2+0i)*y +(0+10i)*z = (0-220i), (-10+0i)*x + (0+10i)*y +(10-10i)*z = (-190+110i)],[x,y,z])

   
Find all posts by this user
Quote this message in a reply
07-04-2015, 09:12 AM
Post: #8
RE: equations with complex results
(07-04-2015 12:50 AM)fcgaino Wrote:  At HP 48, in Solve linear system, I found the following values

x = 10.09<10.6 degrees
y = 2.45<-55.3 degrees
z = 11.31<179.2 degrees

but, in the HP Prime, i don't find these values.

Thanks

From memory (I don't have an HP48 with me here) the HP48 and other calculators in that series provide the solution that minimises the length of the solution vector when solving an underdetermined set of equations such as this. Your equations have infinitely many solutions so there is no reason for the Prime to return one particular solution. The failure of the HP48 to point out the existence of other solutions in this case is not helpful; the Prime's behaviour is more correct.

Nigel (UK)
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)