Question: using C++ using using functions 1. Wrnte a function to compute the cosine ofx. The user should supply x and a positive integer n. We

using C++
using
using functions
1. Wrnte a function to compute the cosine ofx. The user should supply x and a positive integer n. We compute the cosine of x using the series and the computation should use all terms in the series up through the term involvingxa cos x = 1-x-21 + x4/41-x6/6 (you decide how long your precision will be) 2. Wrnte a function to compute sinx for given x. The user should supply x and a positive integer n. We compute the sine of x using the series and the computation should use all terms in the series up through the term involving x* sin x x x3/3! +xl5! - x/7!x9(you decide how long your precision wil be) For both exercises, X should be provided in degrees and converted in rad by a function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
