Function6繼承AbstractDrawFunction 的abstract method, override method
f,改寫成Function6的算法(5*cos(x) + sin(x))