Post Reply 
a bug or a feature.
11-12-2015, 03:29 PM (This post was last modified: 11-12-2015 03:31 PM by Han.)
Post: #3
RE: a bug or a feature.
(11-12-2015 03:05 PM)ji3m Wrote:  I am having great difficulty doing cas matrix operations in a program.

The test case below shows one of the problems

EXPORT hsbat2(M)
BEGIN
LOCAL I,P,Q;
DEBUG;
I := inv(M); <- the inverse seems ok. Both M and I are lists
P := I*M; <- a problem here since '*' does silly list multiply
Q := simplify(P); <- since P is wrong this doesnt do much.
{M,I,P,Q}
END;

How are you calling the program? It runs just fine to me.
M5:=[[1,2,3],[−1,0,1],[0,0,1]];
hsbat2(M5) returns
Code:
{
  [[1,2,3],
   [−1,0,1],
   [0,0,1]],

  [[0,−1,1],
   [0.5,0.5,−2],
   [0,0,1]],

  [[1,0,0],
   [0,1,0],
   [0,0,1]],

  [[1,0,0],
   [0,1,0],
   [0,0,1]]
}

Why are you using lists? Can you show us your example that fails?

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
a bug or a feature. - ji3m - 11-12-2015, 03:05 PM
RE: a bug or a feature. - Marcus von Cube - 11-12-2015, 03:14 PM
RE: a bug or a feature. - Han - 11-12-2015 03:29 PM
RE: a bug or a feature. - ji3m - 11-12-2015, 03:45 PM
RE: a bug or a feature. - ji3m - 11-12-2015, 03:51 PM
RE: a bug or a feature. - Han - 11-12-2015, 04:16 PM



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