Write programs to evaluate the following functions to 0.0001% accuracy.
(a)sinx = x - x^3/3! + x^5/5! - x^7/7! +......
(b)cosx = 1 - x^2/2! + x^4/4! - x^6/6! +......
(c)SUM = 1 + (1/2)^2 + (1/3)^3 + (1/4)^4 + ......