Close to giving up! Matrix ops in HP PPL

12272013, 05:29 PM
Post: #1




Close to giving up! Matrix ops in HP PPL
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. 

12272013, 05:35 PM
Post: #2




RE: Close to giving up! Matrix ops in HP PPL
Add a space in between the operator and operands: m1 .* m2.
Graph 3D  QPI  SolveSys 

12272013, 06:00 PM
Post: #3




RE: Close to giving up! Matrix ops in HP PPL
Han...you're my hero!


« Next Oldest  Next Newest »

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