結果 : how to find a function with two points