HP Forums
Strange RREF (HP 50g) - 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: Strange RREF (HP 50g) (/thread-6972.html)



Strange RREF (HP 50g) - peacecalc - 10-04-2016 09:44 PM

Hello HP 50g friends,

I watched a strange behavier of the RREF command.

If I input the matrix:

Code:
[[ 7.6440528636 7.6440528636 -300. -53.1753303963 ]
 [ -10.192070485 -10.192070485 0. 229.289735683 ]
 [ 61.847 0 0. 8. ]]

and use the RREF command, I get:

Code:
[[ 1. 0. 0. .129351464097 ]
 [ 1. 1.0192070485E14 0. -2.30608094922E15 ]
 [ 1. -.15384615385 4.61538461549E15 -1.82756879024E15 ]]

That is something else as aspected, but if I use a second time RREF I get the aspected form of the matrix:

Code:
[[ 1. 0. 0. 0. ]
 [ 0. 1. 0. -22.6262264632 ]
 [ 0. 0. 1. -.395973237876 ]]

Is there anybody who can explain me the strange behavier? It is not a question of the calculation mode (approxmative or exact)?

Thank you in advance,
sincerely peaceglue


RE: Strange RREF (HP 50g) - Juan14 - 10-04-2016 10:53 PM

Hello, I don't really know what is happening, but you can do this: with the matrix in level 1, enter the command XQ, this transforms every decimal in the matrix to fractions and sets the calculator in exact mode, then the command RREF and then the command ->NUM.


RE: Strange RREF (HP 50g) - peacecalc - 10-06-2016 07:44 PM

Hello Juan14,

it seems to a matter of exact or not, in AUR it is described to use RREF only in exact mode. It is a pity, because the exact mode is very slow.


RE: Strange RREF (HP 50g) - Juan14 - 10-08-2016 12:23 PM

Hello Peaceglue, I was looking at your matrix, and it seems that all the numbers in the matrix must be all reals or all integers, and your first 0 in the the third row is an integer, this somehow force the calculator to go in approximate mode, change it to 0. and run RREF in exact mode and it works.


RE: Strange RREF (HP 50g) - peacecalc - 10-09-2016 09:31 AM

Hello Juan14,

I replaced the approach using RREF with the Cramer's Rule and get for over 600 solvings of systems with three unknowns (inclusive checking wether DET is zero or not) a calculation time of ca. 6 minutes (with RREF I get 4 times more). That is sufficient fast enough for my purposes.

But anyway, thank you very much for your help.

Greetings
peacecalc


RE: Strange RREF (HP 50g) - peacecalc - 10-09-2016 01:01 PM

Hey folks,

the hp 50g is a real number crunching machine. Without the DET function but using CROSS and DOT the duration is only less then 4 minutes. wow!

Greetings peacecalc