Function3

Function3繼承AbstractDrawFunction 的abstract method, override method f
,改寫成Function3的算法(cos(x))