Question: please solve it in C++ Problem 3: Evaluating cos(x) The value of cos(x) is evaluated as follows: x2n + cos(x) := 1--+ +-+ Where n
Problem 3: Evaluating cos(x) The value of cos(x) is evaluated as follows: x2n + cos(x) := 1--+ +-+ Where n is related to the accuracy level required for cos(x). Write a C++ program that asks the user to input n and x and then the program will evaluate cos(x) up to the 2n terms. Sample input/output: Enter n and x: 10 3.1 os(3.1)- .999135
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
