Programming help: MAKEMAT in CAS - 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: Programming help: MAKEMAT in CAS (/thread-182.html) |
Programming help: MAKEMAT in CAS - dizzy - 12-20-2013 06:55 PM What am I doing wrong here? In a program, I have: Quote:LOCAL flist = {'2*x+y', 'y', 'x^2'}; The message box says "jac". I'm expecting a matrix. I've tried so many different permutations of this recipe. I just can't understand how to perform this simple task. RE: Programming help: MAKEMAT in CAS - Michael de Estrada - 12-20-2013 07:16 PM Well, for starters CAS won't recognize LOCAL variable assignments. Also, you need to enclose the entire expression in double quotes " ", i.e. CAS(" <expr> ") RE: Programming help: MAKEMAT in CAS - Han - 12-20-2013 07:30 PM See the bottom of the thread linked below: http://www.hpmuseum.org/forum/thread-132.html RE: Programming help: MAKEMAT in CAS - dizzy - 12-20-2013 08:04 PM (12-20-2013 07:30 PM)Han Wrote: See the bottom of the thread linked below: Thanks. Your post basically confirms what I've come to realise over the past week: the programming language is seriously broken, ugly and unintuitive when it comes to any kind of symbolic manipulation. I've decided to give up programming the Prime for now as it's too much work for the simple things I'm trying to achieve. |