Implement the polynomial `test_colinearity` function
Implement the polynomial
test_colinearityfunction