Post Reply 
Close to giving up! Matrix ops in HP PPL
12-27-2013, 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.
Find all posts by this user
Quote this message in a reply
12-27-2013, 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
Find all posts by this user
Quote this message in a reply
12-27-2013, 06:00 PM
Post: #3
RE: Close to giving up! Matrix ops in HP PPL
Han...you're my hero!
Find all posts by this user
Quote this message in a reply
Post Reply 




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