結果 : how to create a linear function from two points