cancel

Note on archived topics.

This topic has been archived. Information and links in this thread may no longer be available or relevant.
If you have a question create a new topic by clicking here and select the appropriate board.
Intern
Intern
53 40 0 4
Message 1 of 10
4,862
Flag Post
HP Recommended

Solved!

Solving stored complex equations on the HP50g

Hello,

 

I have stored the 2 equations Δ & K, but when I try to solve them in the num. solv. I get the message bad guess(es). I searched on google and it seems that is because I'm working with complex numbers and the num. solv. can't handle them.  However, I haven't found the right way to solve them. I have to use the two equations a lot, so it would be great if you could help me finding a solution where I can solve them entering the values of the variables, just like with the num. solv.

 

 

1-etapa-Zin-Zout.jpg

0 Kudos
9 REPLIES 9
Grad Student
Grad Student
178 177 17 80
Message 2 of 10
4,816
Flag Post
HP Recommended

Solved!

Solving stored complex equations on the HP50g

it is not clear what problem you are trying to solve....

 

 

on the surface, it looks like you have provide 2 equations with 4 unknowns... S11, S22, S21, S12

 

 

OR are you saying that you first want the values shown in the post:

 

S11=0.45∠-54.5

S22=0.79∠-21.5

 

substituted first into the equations

 

and then the equations solved for the unknowns S21 & S12 ?

 

 you can also reference the following videos... just skip past the engineering part to the point where the equations are being made and entered into the 50G... it might help....

 

However, the entry method is shown in RPN format...  are you still using Algebraic mode?

 

this video demonstrates solving equations for unknowns

http://www.youtube.com/watch?v=vj9K_bXKEY4

 

this video demonstrates arithmetic with complex numbers

 

http://www.youtube.com/watch?v=dAUMdDaIq_s 

 

 

OR

are you trying to find a method to substitute values for all the unknowns and then solve for Delta and K?

 

Intern
Intern
53 40 0 4
Message 3 of 10
4,803
Flag Post
HP Recommended

Solved!

Solving stored complex equations on the HP50g

Thanks for your answer. I have to use both equations in several exercises, so I stored the equations in order to save time, so whenever I have to use them, I don't have to write them down, I just have to type the values of the unknowns.

 

Example:

 

First exercise:

 

S11=0.45∠-54.5

S22=0.79∠-21.5

S12=0.5∠-5.5

S21=0.7∠-1.5

 

I go to the num. solv. I choose the equation I type the values and I obtain the results.

 

 

Second exercise:

 

S11=5∠90

S22=1.9∠46.3

S12=2.5∠-55.6

S21=1.7∠-59.5

 

I go to the num. solv. I choose the equation I type the values and I obtain the results.

 

and so on...

0 Kudos
Grad Student
Grad Student
178 177 17 80
Message 4 of 10
4,799
Flag Post
HP Recommended

Solved!

Solving stored complex equations on the HP50g

are you using Algebraic mode or RPN?

 

here is how you can generally enter the complex values like you showed...

 

I'm guessing for now Algebraic mode; however this general process works for BOTH Algebraic or RPN:

 

make sure you have the correct angle mode selected... degrees, radians... 

 

LEFT SHIFT minus key   @this will put parenthesis on the stack

.45

SPACE key

ALPHA

RIGHT SHIFT

6 key   @this will insert the "∠"  symbol

54.5  CHS   @where CHS is the +/- key

ENTER

 

this method will work in BOTH the main display and when entering values in NUM.SLV "solve equation"

 

HOWEVER, in "solve equation"   the cursor must have the equation to solve highlighted...

then press F6  (expr=)  this will put the solution on the stack.  not in the display

 

so to temporarily "escape" from the "solve equation" screen do the following

 

press the NXT key

the softkey F2 is now labeled CALC

 

press CALC

this will "escape" to the 50G screen and you can see the result

now press CANCEL (F5)  (or the ON key) and you return to the "solve equation" screen

 

press NXT and the softkeys are availabe to change equation/variables

 

 

there are other methods that can be used... once you state whether you are using Algebraic or RPN entry mode, these can be shown.

 

 

 

 

 

Intern
Intern
53 40 0 4
Message 5 of 10
4,789
Flag Post
HP Recommended

Solved!

Solving stored complex equations on the HP50g

Thank you, it worked. I'm using algebraic, so if you could give me some other ways it would be great.

0 Kudos
Grad Student
Grad Student
178 177 17 80
Message 6 of 10
4,784
Flag Post
HP Recommended

Solved!

Solving stored complex equations on the HP50g

FYI,  make sure you go back and read your old post... the method to enter equations with existing values using EQW is demonstrated in the last entry and was unfortunately added after you received the answer to your question...

 

here's the easiest method

 

with all four variables stored... S11, S22, S21, S12

 

press the following keys...

 

EVAL

softkey for DELTA

ENTER

 

 

EVAL

softkey for K

ENTER

 

there is another method using MENU (30)

however, I'm going to have to work out the process as I am not as familiar with Algebraic entry mode....

 

unless some other forum member knows how to use MENU (30) in Algebraic mode and can post post the process,

will try and post the process later this evening....

 

 MENU 30 is generally described starting on page 6-26 of the 50G Users Guide   (not users manual)

the section is title "SOLVR sub-menu"

 

the manual describes the process as

MENU(74)

ENTER

press F1 (root)

press F1 (solvr)

 

MENU(30)

ENTER

is the direct access

 

Grad Student
Grad Student
178 177 17 80
Message 7 of 10
4,743
Flag Post
HP Recommended

Solved!

Solving stored complex equations on the HP50g

MENU 30 is generally described starting on page 6-26 of the 50G Users Guide   (not users manual)

the section is title "SOLVR sub-menu"

 

the manual describes the process as

MENU(74)

ENTER

press F1 (root)

press F1 (solvr)

 

 

OR for direct access execute:

MENU(30)

ENTER

 

 

with the equations for Delta and K saved

no variables are currently stored  (all old variables deleted)

 

put one of the equations on the stack

 

for this example, 'K' will be put on the stack

K (softkey)

ENTER

 

now execute

STO> 'EQ'

 

execute

MENU(30)    @make sure the parenthesis are around the number 30

ENTER 

 

this will begin the solver for the equation currently stored in the variable EQ... which is now 'K'

 

the screen should look like this:

 

Capture.JPG

 

 

follow the previously defined procedure to create a complex variable and put that variable on the stack

 

for this example, the value for S11 will be entered on the stack

 

(0.45 ∠-54.5)

 

execute

STO> S11 (to create the "S11" for the store function, press the softkey for S11, you don't have to type "S11")

ENTER

 

(0.79∠-21.5)

 

STO> S22 (to create the "S22" for the store function, press the softkey for S22, you don't have to type "S22")

ENTER

 

(0.5∠-5.5)

STO> S12 (to create the "S12" for the store function, press the softkey for S12, you don't have to type "S12")

ENTER

 

(0.7∠-1.5)

STO> S21 (to create the "S21" for the store function, press the softkey for S21, you don't have to type "S21")

ENTER

 

to recall one of the variables, just press the softkey for the variable and press ENTER.. the variable value will be put on the stack

 

to solve the equation press the EXPR= softkey

 

the screen will look like the following:

 

Capture.JPG

 

 

to change the equation

press VAR

press the softkey for DELTA 

press ENTER

execute

STO>'EQ'

 

execute

MENU(30)

ENTER

 

press EXPR= softkey

 

the screen will look like the following:

 

Capture1.JPG

 

 

 

after you gain some experience and learn how to program the 50G, you can also build a very simple program using the INFORM command.... similar to what is shown in the following forum post

 

/t5/Calculators/Using-a-matrix-with-variables-in-it/m-p/5952515#M12675

 

 

 

0 Kudos
Grad Student
Grad Student
414 341 11 136
Message 8 of 10
4,727
Flag Post
HP Recommended

Solved!

Solving stored complex equations on the HP50g

Hi!, JamesJames:

 

For your help in HP50G, you can see compmara.zip, of Nick Karagiaouroglou ... http://www.hpcalc.org/details.php?id=5114

0 Kudos
Grad Student
Grad Student
178 177 17 80
Message 9 of 10
4,717
Flag Post
HP Recommended

Solved!

Solving stored complex equations on the HP50g

there is one additional feature of the "SOLVR sub-menu".. (menu 30)

 

if there are multiple equation to solve, as in your example, the equations can be put into a list.

 

the list of equations can be stored in the variable EQ.

 

when MENU(30) is executed, an additional softkey will be available to select the equation to solve with softkey EXPR=

 

to create the list of equation in algebraic mode, do the following

 

LEFT SHIFT

+   @puts curly brackets on stack

RIGHT ARROW  @ this moves the cursor to the right side of the curly braces

+

K softkey

+

DELTA softkey   @ as many equations as needed can be added to the list

 

your screen will look like the following

 

Capture.JPG

 

press ENTER

 

the screen will look like the following

 

Capture1.JPG

 

both equations are now in a list..

 

now store the list to the variable EQ

 

STO>'EQ'

 

start the SOLVE sub-menu

 

MENU(30)

 

the screen will now show the current equation to be solved at the TOP of the display

 

Capture2.JPG

 

 

notice that softkey F6 now has the function NXEQ

 

press F5 (expr=) and the display shows:

 

 

Capture2.JPG

 

 

 

press F6 and the equation to be solved (shown at the top of the screen) when F5 is pressed changes.

 

 Capture9.JPG

 

 

 

 press F5 (expr=) and the display shows:

 

 Capture3.JPG

 

 

0 Kudos
Highlighted
Grad Student
Grad Student
414 341 11 136
Message 10 of 10
4,703
Flag Post
HP Recommended

Solved!

Solving stored complex equations on the HP50g

Hi!, JamesJames:

 

For your exercises, you can see the results ...

 

First:

S11=0.45∠-54.5

S22=0.79∠-21.5

S12=0.5∠-5.5

S21=0.7∠-1.5

 

First_exer.JPG and result ... Result_1.JPG

 

Second:

S11=5∠90

S22=1.9∠46.3

S12=2.5∠-55.6

S21=1.7∠-59.5

 

Second_exer.JPG and result ... Result_2.JPG

0 Kudos

Note on archived topics.

This topic has been archived. Information and links in this thread may no longer be available or relevant.
If you have a question create a new topic by clicking here and select the appropriate board.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation