Problem with Gauss-Jordan-Algorithm
12-23-2018, 10:16 AM
Post: #1
 oliver.eggo Junior Member Posts: 3 Joined: Dec 2018
Problem with Gauss-Jordan-Algorithm
Hello everybody,
I'm new here with you in the forum.
Unfortunately, I have a problem with a program, which we got from a lecturer and we have to use for the exams.
The lecturer uses a Texas Instruments calculator.
Since I always had a HP, I do not want to change.
Unfortunately, I do not know how to change this program to get it running on my HP prime. Every time I run the program I get a syntax error.

Here is the program:

PROGRAMM:GJP
:Disp “Matrix”
:Prompt [A]
:Disp “Pivotzeile”
:Prompt Z
:Disp “Pivotspalte”
:Prompt S
:*row(1/[A](Z,S),[A],Z)‐>[A]
:dim([A])‐>L1
:For (I,1,L1(1),1)
:If (I≠Z)
:Then
:*row+(‐[A](I,S),[A],Z,I)‐>[A]
:End
:End
:Disp [A]

Note from the lecturer: -> represents the first storage space for lists

I hope you can help me. Many thanks in advance.

Oliver
12-23-2018, 01:23 PM
Post: #2
 grsbanks Senior Member Posts: 1,219 Joined: Jan 2017
RE: Problem with Gauss-Jordan-Algorithm
What you need to do is learn the programming language of the Prime, HP-PPL. You can't give the Prime a program in TI-Basic to chew on and expect it to work!

If you've already tried to do that, then post what you have so far and we can have a look at it.
12-23-2018, 01:44 PM
Post: #3
 oliver.eggo Junior Member Posts: 3 Joined: Dec 2018
RE: Problem with Gauss-Jordan-Algorithm
(12-23-2018 01:23 PM)grsbanks Wrote:  What you need to do is learn the programming language of the Prime, HP-PPL. You can't give the Prime a program in TI-Basic to chew on and expect it to work!

If you've already tried to do that, then post what you have so far and we can have a look at it.

Thank you for the fast answer. I almost feared that. Is that a big hassle for someone who has a clue about it? Unfortunately it will not work for me in time to look at it during the learning phase. I would also be willing to pay something.
12-23-2018, 04:45 PM
Post: #4
 roadrunner Senior Member Posts: 438 Joined: Jun 2015
RE: Problem with Gauss-Jordan-Algorithm
Is this:

what you are looking for?

12-23-2018, 05:09 PM (This post was last modified: 12-23-2018 05:10 PM by oliver.eggo.)
Post: #5
 oliver.eggo Junior Member Posts: 3 Joined: Dec 2018
RE: Problem with Gauss-Jordan-Algorithm
(12-23-2018 04:45 PM)roadrunner Wrote:  Is this:

what you are looking for?

Yes, this is exactly what I'm looking for. All the programs I have found so far have selected the pivot element itself. But I should have the possibility to choose the pivot element myself.
12-25-2018, 10:51 AM
Post: #6
 Rudi Junior Member Posts: 15 Joined: May 2015
RE: Problem with Gauss-Jordan-Algorithm
Hi All,
I think that's not a program, it's a pseudocode.
You have to adapt the program technically on the respective device.
Helpful are commands like rref () (result Gauss-Jordan-method) and ref (matrix) (result Gauss-method); see in the very good help documentation after.
Specially, the command pivot () can also be used.

Does the teacher also accept devices other than one from TI? Programming an HP Prime and, for example, a TI nSpire CX CAS are very different.

There are experimental HP Prime programs for Gauss-Jordan-Algorhytmua, our senior member salvomic has released.