結果 : write trig function from graph