enter image description here
Given that Cosx is derived from the following formula, write a program that obtains the sum of the following statements for calculation.