Determine if a point is a solution