Post Reply 
HP-50G CON function behavior
09-24-2020, 06:47 PM (This post was last modified: 09-24-2020 07:01 PM by Artur - Brasil.)
Post: #1
HP-50G CON function behavior
Hi, guys!

I'm trying a program in my 50G using State Space for representing systems, when we need to create a matrix A of dimension nxn of constant value 0 (zero).
Simple, isn't it? For example: A3x3 of 1s:

[3 3] 1 CON (in MATRICES/CREATE menu)
The HP-50G returns the asked matrix.

But I need to replace some elements starting at 2nd for one 2x2 identity matrix. So:
2 ENTER
2 IDN - this returns the Identity matrix

Try to use the REPL command and BOW! Not working!
See the type of matrix A: 29 - algebric!
Why???

I discovered tha I had to use -->num for it works... but it is not the ideal world...

By the way: I turned ON the flag 85 and my programms'listing on stack was crazy! But editing them, the code behind was ok!

Best regards,
Artur _brazil
Artur

ARTUR MARIO JUNIOR
BRAZIL
Find all posts by this user
Quote this message in a reply
09-25-2020, 01:21 PM (This post was last modified: 09-25-2020 01:38 PM by John Keith.)
Post: #2
RE: HP-50G CON function behavior
The command AXM will convert an algebraic matrix to a numeric matrix or vice versa.

Are you using exact or approximate numbers in your matrices?

Edit: I tried your actions on my HP 50 in approximate mode. Note that for CON the dimensions need to be in curly braces { } not brackets. This is the matrix I got:

Code:

[[ 1. 1. 0. ]
 [ 1. 0. 1. ]
 [ 1. 1. 1. ]]

The matrix is type 3 (numeric).
Find all posts by this user
Quote this message in a reply
Post Reply 




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