Post Reply 
Colinear Points
12-26-2013, 01:59 AM
Post: #8
RE: Colinear Points
(12-25-2013 06:56 PM)Terje Vallestad Wrote:  
(12-25-2013 05:33 PM)Han Wrote:  Thanks for sharing! Quick question, though: Why check if 1/det(...) produces an error, as opposed to simply checking if det(...) is non-zero?

I'm probably a glass half empty man rather than half full...... :-)

However, I needed a trigger/trap and ISERR was the first one I found in the manual. Being new to programming PPL I did not look further. Would it in your opinion be a benefit to look for a positive rather than a negative in this instance?

Thanks, Terje

IFERR would be a perfectly fine solution if the only error produced from 1/det(...) is a division by zero error. However, there are other ways det(...) could produce an error (non-square matrix when the user accidentally creates more entries than necessary). So an error having nothing to do with colinearity would incorrectly result in the wrong conclusion of "colinear." To make the program exit gracefully when an error occurs, you may want to test the dimensions of the matrix prior to executing det(...).

Graph 3D | QPI | SolveSys
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)