Building matrices using "Solve lin sys.." on the 50g.
#1

Greetings,

If someone has the time I could sure use some help.

To make a long story short, I have been unable to build the A and B matrices for "Solve lin sys.." where the elements are complex numbers. I get various error messages depending on the way I try to do it. However, I can use MTRW to populate matrices with complex elements in both rectangular and polar representations.

I would much rather solve the system directly in "Solve lin sys.." than use Cramer's rule.

If someone is so inlined to try this, here are the exact matix elements I am working with:

For matrix A:
- A11=3+i*3+7.07+i*7.07
- A12=7.07+i*7.07
- A21=7.07+i*7.07
- A22=7.07+i*7.07

For matrix B (using polar representation):
- B11=(10,<0)
- B21=(5,<45)

Any and all assistance would be greatly appreciated,
Ken


BTW - Not that it matters but the elements in A are impedances, the elements in B are voltages and the unknowns are currents.

Edited: 11 Dec 2006, 9:18 a.m.

#2

Hello Ken,

Did you try to enter the numbers between parenthesis?

For matrix A, enter:

- A11=(10.07,10.07)
- A12=(7.07,7.07)
- A21=(7.07,7.07)
- A22=(7.07,7.07)

For matrix B, enter:

- B11=(10.,<0.)
- B21=(55.,<45.)

For <, enter: right shift 6.

Don't forget to switch to mode Degree. No need to switch to Complex mode.

Best regards.

Patrick

#3

Hi Patrick,

Thanks for your response.

I've tried everything (I think) and can't find a way to use complex numbers with the matrix editor as accessed thru "Solve lin sys.." This is very frustrating because it looks just like MTRW. Anyway, I have been solving the systems of equations at hand by using MTRW and Cramer's rule.

Thanks again,
Ken

#4

If you can create your matrices with MTRW, then go ahead and put the B matrix on the stack first, then the A matrix. Press the divide key and the system will be solved.

Or another way to create the matrices and solve your system without using MTRW is:

Put your calculator in approximate mode and rectangular mode and enter your system like this:

First put the B vector on the stack. Press the purple prefix key and then the "times" key to get [] on the display. Do this again and see [[]] on the display. Don't press "ENTER" yet. With the cursor still pointing between the inner pair of brackets, type the {1,1} element of your vector as (10 <0) so that you have [[ (10 <0) ]] on the display. Type ALPHA, right shift, 6 to get the angle symbol. Press the cursor right key until the cursor is pointing between the 2 right brackets. Now type { 5 <45 ) and then ENTER (even though you enter the complex numbers in polar mode, the calculator immediately converts to rectangular as soon as you press enter). You should see (I'm only showing 5 digits):

[[ (10,0) ]
[ (2.6266,4.2545) ]]

That is your B vector. Notice that as soon as you type the first complex element, the entire vector (or matrix) becomes complex.

Now press the <purple prefix and times key> sequence twice to get [[]] on the display again. Now type (10.07 10.07), space, (7.07 7.07); this is the first row of the A matrix. Next press the cursor right key until the cursor points between the 2 right brackets. Finish typing the second row of your A matrix and then press ENTER. You should see:

[[ (10.07 10.07)  (7.07 7.07)  ]
[ (7.07 7.07) (7.07 7.07) ]]

Now press the divide key and you will get the solution vector on the stack. What this does is to invert the A matrix and premultiply it times the B vector. Press the MODE key and set the calculator to polar mode if you want to see the solution in polar coordinates.

This method can also be used for larger matrices and vectors. Just type in the first row and then press the cursor right key until the cursor points between the 2 right hand brackets. Then type all the rest of the elements of the matrix (or vector) and press ENTER.



Possibly Related Threads…
Thread Author Replies Views Last Post
  HP Prime Matrices curiosity bluesun08 0 1,479 12-09-2013, 06:44 PM
Last Post: bluesun08
  [HP-Prime CAS] "Warning, ^ (Command) Is ambiguous on non square matrices"?? CompSystems 1 2,138 12-07-2013, 07:15 PM
Last Post: CompSystems
  HP Prime: matrices in programs, in need of help Alberto Candel 9 3,174 11-26-2013, 01:33 AM
Last Post: cyrille de Brébisson
  HP 50g - question about matrices arrays vectors etc. Sean Freeman 6 2,449 11-14-2013, 01:44 PM
Last Post: peacecalc
  XCas / Prime "solve" question Nigel J Dowrick 4 1,946 11-08-2013, 04:01 AM
Last Post: Nigel J Dowrick
  Using the Prime to solve for eigenvalues Michael de Estrada 28 8,331 10-27-2013, 07:21 AM
Last Post: Tarcisi C
  HP Prime Define: Use with solve, etc. Helge Gabert 0 984 10-23-2013, 06:24 PM
Last Post: Helge Gabert
  HP 34s solve f'(x)=0 Richard Berler 8 2,523 10-07-2013, 03:03 PM
Last Post: Dieter
  HP Prime SIZE and OBJ-> with matrices/vectors/lists Helge Gabert 8 2,742 09-27-2013, 05:44 PM
Last Post: Helge Gabert
  Programming with Matrices Han 10 2,827 09-25-2013, 03:59 PM
Last Post: Han

Forum Jump: