HP Prime: matrices in programs, in need of help  Printable Version + HP Forums (https://archived.hpcalc.org/museumforum) + Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum1.html) + Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum2.html) + Thread: HP Prime: matrices in programs, in need of help (/thread256968.html) 
HP Prime: matrices in programs, in need of help  Alberto Candel  11252013 Hi,
EXPORT EU(p,q) This produces a syntax error right after the last "]" However, this is fine
EXPORT EU(p,q) but this is not
EXPORT EU(p,q)
Thanks!
Re: HP Prime: matrices in programs, in need of help  Han  11252013 Quote:
Are you using "comma (,)" mode? If so, this is currently bugged because "," is treated as the new decimal point, and ";" becomes the new comma. Therefore the parser is incorrectly treating the ";" as a comma. The result is a syntax error.
Re: HP Prime: matrices in programs, in need of help  Alberto Candel  11252013 Hi Han,
Thank you.
Re: HP Prime: matrices in programs, in need of help  Patrice  11252013 Non constant matrix is not supported directly on Prime 1.0
m:=EXPR("[[0,1,"+p+"],[0,1,"+q+"]]"); Re: HP Prime: matrices in programs, in need of help  Alberto Candel  11252013 Well, yes, it does work (but.. who would have thought of that).
Thank you!
Re: HP Prime: matrices in programs, in need of help  Han  11252013 Quote:
It's just addition. He's creating a string which the command EXPR() converts into an expression. The current firmware does not support local variables inside matrices.
Re: HP Prime: matrices in programs, in need of help  Alberto Candel  11252013 Oh, I see. Thank you for the explanation. That is probably why the rest of my program, while syntax error free, makes my HP to crash.
It is unfortunate that matrices cannot be handled in programs. I was rewriting a version of the euclidean algorithm that uses matrices for a number theory class, but ... it works wonderfully on the TI89!
Re: HP Prime: matrices in programs, in need of help  Han  11252013 Quote:
I am fairly certain that this issue is well known at this point (to the developers, that is) as there were many discussions in this forum on it not long after the Prime became available for purchase.
Re: HP Prime: matrices in programs, in need of help  Alberto Candel  11252013 Hi again, and thank you.
Do you know if lists are subject to the same issue as matrices in programs? Thank you.
Re: HP Prime: matrices in programs, in need of help  cyrille de BrĂ©bisson  11262013 hello, no, lists do not have the same restriction.
cyrille
