HP Forums
Wrong output for a matrix in a program of mine - 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: Wrong output for a matrix in a program of mine (/thread-15748.html)



Wrong output for a matrix in a program of mine - salvomic - 10-17-2020 09:33 PM

hi,
please help with the problem I found in this program of mine:
HP Prime Software Library: Jacobi function

With G2 Software version 2.1.14433 (2020 01 21) both in CAS and Home, if ‹number format› in Home Settings is set to "Standard" and Angular mode is "RAD" the return of the program with the input given in that thread is a matrix where the second elements of the two rows present a wrong char (a "rectangle", "⌷": is it for "not recognised character" of for ellipsis "..."?) instead of the right numbers (too long?).
In the thread I explain my tries to reproduce it.

Thanks in advance!
Salvo

EDIT: in iOS I get the sign "..." in Home but in CAS I get an error: "Error in input" with the same data...
Why?


RE: Wrong output for a matrix in a program of mine - grsbanks - 10-18-2020 10:42 AM

Salvo, do you have the correct #pragma statement in your program? A listing would be useful.

See here: https://www.hpmuseum.org/forum/thread-12464.html


RE: Wrong output for a matrix in a program of mine - salvomic - 10-18-2020 03:40 PM

(10-18-2020 10:42 AM)grsbanks Wrote:  Salvo, do you have the correct #pragma statement in your program? A listing would be useful.

See here: https://www.hpmuseum.org/forum/thread-12464.html

hi,
no, in the original program there is no PRAGMA statement,
I set the #pragma statement but with its default form there wasn't any change. How should I set it?

Another idea is to show the matrix with a lesser number of digits, like 6, e.g. using ROUND (..., 6) or so... But this is an approximation.


Salvo