HP-50G CON function behavior - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: General Forum (/forum-4.html) +--- Thread: HP-50G CON function behavior (/thread-15635.html) |
HP-50G CON function behavior - Artur - Brasil - 09-24-2020 06:47 PM 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 RE: HP-50G CON function behavior - John Keith - 09-25-2020 01:21 PM 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:
The matrix is type 3 (numeric). |