Post Reply 
Let's vote for suggestions and bugs
03-15-2019, 08:33 AM (This post was last modified: 03-15-2019 10:02 AM by Oulan.)
Post: #86
RE: Let's vote for suggestions and bugs
Here is not very useful program
Code:
#pragma mode(separator(.,;) integer(h32))
LOCAL mat:=[[1,2],[3,4]];
EXPORT test() BEGIN
 LOCAL li:={1,2,3,4};
 LOCAL ii;
 FOR ii FROM 1 TO SIZE(li) DO
  PRINT(STRING(ii)+" "+STRING(li(ii)));
  li:=append(li,ii);
  IF ii>10 THEN BREAK;END;
 END;
 PRINT(li);
 //ii:=SIZE(mat)(1);       // is not parsed
 ii:=SIZE(mat); ii:=ii(1); // is ok ...  
END;
On the calc, it works as planned, SIZE(li) seems to be evaluated once at start of loop,
Code:
1 1
2 2
3 3
4 4
{1,2,3,4,1,2,3,4}
but on the virtual prime there is some bug ...
Code:
1 1
2 112
3 112
4 101
append(li,ii)
 Error: Bad Argument Value

Btw a second annoying behaviour, see the two last lines ... not a bug but a limitation
Other troubles: k is a 16x16 matrix (full rank), f is a vector (not a {1,16} matrix)
Code:
  M1:=k;
  M2:=TRN(f);
  M3:=simult(M1,M2);
  M4:=simult(k,TRN(f));
Third line is correctly evaluated, fourth one leads to an error (Bad argument type)

Btw, (M1^-1)*f give a full zero solution, which is an error, simult gives the right solution

P.S. calc and virtual one at the last revision 2.1.14181

Olivier
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Let's vote for suggestions and bugs - Oulan - 03-15-2019 08:33 AM
BREAK still reboot the calc - Oulan - 07-21-2019, 09:12 AM



User(s) browsing this thread: 1 Guest(s)