Matrices on HP39gii (Cautionary Tale) « Next Oldest | Next Newest »

 ▼ Eddie W. Shore Posting Freak Posts: 764 Threads: 118 Joined: Aug 2007 03-20-2013, 06:10 PM Don't try to store a matrix in a program, the calculator either gives an error or freezes. Example code: M1:=[[A,B],[C,D]] where A, B, C, and D are previously defined, at least when A, B, C, and D are local. I am thankful that the ON and backspace trick doesn't erase the memory. ▼ Patrice Senior Member Posts: 274 Threads: 23 Joined: Sep 2007 03-21-2013, 12:57 PM Actual firmware is evaluating matrix at compile time. Hope it change in next firmware. in home: A:=A+1;[A,A+1] the matrix use the value of A before the increment :( ▼ Gilles Carpentier Senior Member Posts: 468 Threads: 17 Joined: May 2011 03-23-2013, 07:54 PM I second you about this behavior. A new firmware is needed... here a small program for "sprites" ... Works fine and quick but ... I crashed my calc with it. So be carefull and backup the 39GII memory ( Copy your sources in another place that the connectivity kit because all is lost in a bad crash !!) ```EXPORT Sprite(Pause) BEGIN IF Pause==0 THEN Pause:=.00001 END; L1:={ 0,0, 0,1, 1,0, 9,0, 10,0, 10,1, 0,9, 0,10, 1,10, 10,10, 10,9, 9,10, 2,3, 2,5, 3,2, 3,4, 4,1, 4,3, 5,2}; DIMGROB_P(G1,13,13,0); RECT_P(G1,0,0,12,12,3,0); FOR I FROM 1 TO SIZE(L1) STEP 2 DO PIXOFF_P(G1,L1(I)+1,L1(I+1)+1); END; RECT_P(0,0,255,126,0,3); X:=100;Y:=100; REPEAT X:=MIN(241,ABS(X+ISKEYDOWN(10)-ISKEYDOWN(14))); Y:=MIN(112,ABS(Y+ISKEYDOWN(15)-ISKEYDOWN(9))); BLIT_P(X+1,Y+1,G1); WAIT(Pause); UNTIL 0; END; ``` Usage Sprite(0.01) //0 is max speed To exit ON/C Small video on an adapted version Edited: 24 Mar 2013, 6:07 a.m.

 Possibly Related Threads... Thread Author Replies Views Last Post HP Prime Matrices curiosity bluesun08 0 937 12-09-2013, 06:44 PM Last Post: bluesun08 [HP-Prime CAS] "Warning, ^ (Command) Is ambiguous on non square matrices"?? CompSystems 1 1,291 12-07-2013, 07:15 PM Last Post: CompSystems HP Prime: matrices in programs, in need of help Alberto Candel 9 2,083 11-26-2013, 01:33 AM Last Post: cyrille de Brébisson HP 50g - question about matrices arrays vectors etc. Sean Freeman 6 1,695 11-14-2013, 01:44 PM Last Post: peacecalc HP39gii Richard Berler 1 924 10-23-2013, 12:10 AM Last Post: WALTER B HP Prime SIZE and OBJ-> with matrices/vectors/lists Helge Gabert 8 1,842 09-27-2013, 05:44 PM Last Post: Helge Gabert Programming with Matrices Han 10 1,952 09-25-2013, 03:59 PM Last Post: Han [HP-prime] Parallel Processing, vectors, matrices as a only data type =( CompSystems 1 784 08-08-2013, 04:48 PM Last Post: peacecalc Square Root Simplifier for HP39gII Mic 4 1,420 03-11-2013, 08:25 AM Last Post: Eddie W. Shore Tangent's equation program for HP39gII Mic 22 4,132 03-01-2013, 11:14 AM Last Post: Tim Wessman

Forum Jump: