Post Reply 
POLYROOT does not always work inside a program [SOLVED]
01-06-2016, 09:53 PM (This post was last modified: 01-06-2016 11:27 PM by DrD.)
Post: #2
RE: POLYROOT does not always work inside a program
That does seem to be a problem, and a possible work-around is to pre-assign the vector to a matrix variable:

Code:

EXPORT tmp()
BEGIN
  M0:=[1,-3,2];
  POLYROOT(M0);
END;

Also, if passed as a string object, it seems to work:

Code:

EXPORT tmp()
BEGIN  
  POLYROOT("[1,-3,2]");
END;

-Dale-
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: POLYROOT does not always work inside a program - DrD - 01-06-2016 09:53 PM



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