Function3

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