Close to giving up! Matrix ops in HP PPL - 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: Close to giving up! Matrix ops in HP PPL (/thread-255.html) |
Close to giving up! Matrix ops in HP PPL - jgreenb2 - 12-27-2013 05:29 PM So I'm pretty deep into a program that has some heavy matrix calculations at its core. I've coded the UI and the data structures and now I want to do the really simple part: the matrix math. Should be a piece of cake, right? Except that nothing works because many of the matrix functions I need aren't available from HP PPL. Try to get this simple program to run: EXPORT test() begin local m1,m2,m3; print; m1:=[[1,2],[3,4],[5,6]]; m2:=[[2,2],[2,2],[2,2]]; m3:= m1.*m2; print("m3= ",string(m3)); end; This won't even compile because the ".*" operator isn't part of HPPPL!!! Apparently, none of the functions in Bernard's CAS system are available. Am I missing something? I never dreamed that the basic math functionality of the calculator wouldn't be available from a program. RE: Close to giving up! Matrix ops in HP PPL - Han - 12-27-2013 05:35 PM Add a space in between the operator and operands: m1 .* m2. RE: Close to giving up! Matrix ops in HP PPL - jgreenb2 - 12-27-2013 06:00 PM Han...you're my hero! |