Post Reply 
Colinear Points
12-25-2013, 09:35 PM
Post: #7
RE: Colinear Points
(12-25-2013 07:47 PM)patrice Wrote:  Your program can be made a function.
Code:
EXPORT COLINEAR(Mt)
BEGIN
// Declare local variable to hold matrix and state
LOCAL Tmp;
// add column of one's to make square
ADDCOL(Mt,[1,1,1],3);
// Check if determinant is equal to 0
IF det(Mt) == 0 THEN Tmp:= 1; ELSE Tmp:= 0; END;
RETURN Tmp;
END;
so that you can call it from Home or anotherr program.

Thanks Patrice,

No bells and whistles, but very neat. Also gets rid of my problem with a return value I didn't need.

Cheers, Terje
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Colinear Points - Terje Vallestad - 12-25-2013, 04:48 PM
RE: Colinear Points - Han - 12-25-2013, 05:33 PM
RE: Colinear Points - Terje Vallestad - 12-25-2013, 06:56 PM
RE: Colinear Points - Han - 12-26-2013, 01:59 AM
RE: Colinear Points - debrouxl - 12-25-2013, 06:13 PM
RE: Colinear Points - Terje Vallestad - 12-25-2013, 07:05 PM
RE: Colinear Points - patrice - 12-25-2013, 07:47 PM
RE: Colinear Points - Terje Vallestad - 12-25-2013 09:35 PM



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