HP Forums
Problem with Gauss-Jordan-Algorithm - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Problem with Gauss-Jordan-Algorithm (/thread-12013.html)



Problem with Gauss-Jordan-Algorithm - oliver.eggo - 12-23-2018 10:16 AM

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


RE: Problem with Gauss-Jordan-Algorithm - grsbanks - 12-23-2018 01:23 PM

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.


RE: Problem with Gauss-Jordan-Algorithm - oliver.eggo - 12-23-2018 01:44 PM

(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.


RE: Problem with Gauss-Jordan-Algorithm - roadrunner - 12-23-2018 04:45 PM

Is this:

[attachment=6693]

what you are looking for?

-road


RE: Problem with Gauss-Jordan-Algorithm - oliver.eggo - 12-23-2018 05:09 PM

(12-23-2018 04:45 PM)roadrunner Wrote:  Is this:



what you are looking for?

-road

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.


RE: Problem with Gauss-Jordan-Algorithm - Rudi - 12-25-2018 10:51 AM

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.
Various links for this:
http://www.hpmuseum.org/forum/thread-4136.html
http://www.hpmuseum.org/forum/thread-4063.html
http://www.hpmuseum.org/forum/thread-2936.html

I hope that is helpful to you.

Translated with google translator

Rudi