C++, ultra violent supercomputer
Approximate values for sine and cosine of an angle, x (radians), can be obtained from the tollowing infinite series equations: sin x = x–+ + Eq. 1 5! cosx = 1–+ + Eq. 2 2 4 6! 1. Develop a procedure for iteratively determining values for sine and cosine using this relationship. Based on your algorithm, program a simultaneous solution to each equation in C or C++ to determine “sin x” and “cos x”, then solve the Pythagorean Identity, sin x2 cos x2-1 , using your approximate values, for a given value ofx that is input by the user. Implement and run your program on the ULTRAVIOLET supercomputer. The results should display to screen in a tabular format. Include the % error obtained for the true value of 1.00000″ 2.