Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Preliminary C++ Program. Given the McLaurin series sin(x) = x – x 3 /(3!) + x5 /(5!) – x 7...

Preliminary C++ Program. Given the McLaurin series sin(x) = x – x 3 /(3!) + x5 /(5!) – x 7 /(7!) + x9 /(9!) + . . . where x is in radian. cos(x) = 1 – x 2 /(2!) + x4 /(4!) – x 6 /(6!) + x8 /(8!) + . . . where x is in radian. 1. Write two functions g(x) = sin(x) and h(x) = cos(x) using the series above to obtain accuracy to 5 decimal places. 2. Write a C++ program that uses the functions above to calculate f(n) for integer n = 0 to 6 where f (n) = 5 g(n) * h(4000 π n + π /3) = 5 sin(n) * cos(4000 π n + π /3) and 0 <= n <=6 Run Output Format Requirement n 5 sin(n) cos(4000 π n + π /3) f(n) -----------------------------------------------------------------------

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question