HP Prime: matrices in programs, in need of help Message #1 Posted by Alberto Candel on 25 Nov 2013, 6:45 p.m.
Hi,
I am not sure what I am doing wrong, but a program that I am writing
starts by making a 2x3 matrix out of 2 numbers:
EXPORT EU(p,q)
BEGIN
LOCAL m;
m:=[[0,1,p],[0,1,q]];
//other stuff
END;
This produces a syntax error right after the last "]"
However, this is fine
EXPORT EU(p,q)
BEGIN
LOCAL m;
m:=[[0,1],[0,1]];
//other stuff
END;
but this is not
EXPORT EU(p,q)
BEGIN
LOCAL m;
m:=[[0,p],[0,q]];
//other stuff
END;
Thanks!
|