Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Determine whether a set of points lie on a line
ResourceFunction["CollinearQ"][{list1,list2,…}] returns True if the set of points determined by the listi lie on a single line. |
Determine whether three points lie on a single line:
In[1]:= |
Out[1]= |
In[2]:= |
Out[2]= |
A set of three points need not be colinear:
In[3]:= |
Out[3]= |
In[4]:= |
Out[4]= |
CollinearQ works in more than two dimensions:
In[5]:= |
Out[5]= |
Three points in three dimensions on a line:
In[6]:= |
Out[6]= |
CollinearQ works with symbolic input:
In[7]:= |
Out[7]= |
This work is licensed under a Creative Commons Attribution 4.0 International License