4 Write Computer Program Evaluates Pn X Pn X Taylor Series Expansion Derived Problem 3 Ve Q43890196
4.Write a computer program that evaluates Pn(x) where Pn(x) is theTaylor series expansion derived in problem (3) above. Verify thatIf(x) – Pn(x)l satisfies the appropriate error bound. You must beable to convince me by plotting results and checking the error foryour approximation that everything was programmed correctly. Fromyour graphs, you will see that the error depends on . Which valuesof x would you predict tend to give smaller/larger errors? Doesyour graph corroborate your intuition?
3. Let f(x) = 2 cos(r) + 3 sin() and ro = 0. Find the nthTaylor polynomial Pn(x) for f(x) about ro. Find a value n necessaryfor Pn(x) to approxi- mate f(x) to within 10-6 on [-7, 7]. Forwhich values of r is the series guaranteed to converge?

Above is the answer to the third question I made. My problem liesin the programming (please use c++).4. Write a computer program that evaluates Pn(x) where Pn(x) is the Taylor series expansion derived in problem (3) above. Verify that If(x) – Pn(x)l satisfies the appropriate error bound. You must be able to convince me by plotting results and checking the error for your approximation that everything was programmed correctly. From your graphs, you will see that the error depends on. Which values of x would you predict tend to give smaller/larger errors? Does your graph corroborate your intuition? 3. Let f(x) = 2 cos(x) + 3 sin(x) and Xo = 0. Find the nth Taylor polynomial Pn(x) for f(x) about 30. Find a value n necessary for Pn () to approxi- mate f(x) to within 10-6 on (-7,7). For which values of x is the series guaranteed to converge? 1 X.o foto) = 2 f(x) = 3 1 3.ca) Given fex) = 2005* +35iX – fox) = 2605*+ 35hx f(x) = -2 Schx + 300sx füm –> 00SX – 35 x fx = 25inx – 3cosx – Pacos CCM k. ” 1 f(x) = -2 – fx=3 + .. (1)” [ Error & lan) 2/10) n (6) t 3C124+ (anti)i </ob check (TT *3-14) for for for anti)! N:2: 15.7320 > toto n=3 : 2.1717 lo” nis: 0.0733>/03 n=7: 2.73030/0 * > lot n=8: 1.0801x/os/66 n. 9: 86818×60 <166 for for for v n=9 Show transcribed image text 4. Write a computer program that evaluates Pn(x) where Pn(x) is the Taylor series expansion derived in problem (3) above. Verify that If(x) – Pn(x)l satisfies the appropriate error bound. You must be able to convince me by plotting results and checking the error for your approximation that everything was programmed correctly. From your graphs, you will see that the error depends on. Which values of x would you predict tend to give smaller/larger errors? Does your graph corroborate your intuition? 3. Let f(x) = 2 cos(x) + 3 sin(x) and Xo = 0. Find the nth Taylor polynomial Pn(x) for f(x) about 30. Find a value n necessary for Pn () to approxi- mate f(x) to within 10-6 on (-7,7). For which values of x is the series guaranteed to converge?
1 X.o foto) = 2 f(x) = 3 1 3.ca) Given fex) = 2005* +35iX – fox) = 2605*+ 35hx f(x) = -2 Schx + 300sx füm –> 00SX – 35 x fx = 25inx – 3cosx – Pacos CCM k. ” 1 f(x) = -2 – fx=3 + .. (1)” [ Error & lan) 2/10) n (6) t 3C124+ (anti)i toto n=3 : 2.1717 lo” nis: 0.0733>/03 n=7: 2.73030/0 * > lot n=8: 1.0801x/os/66 n. 9: 86818×60
Expert Answer
Answer to 4. Write a computer program that evaluates Pn(x) where Pn(x) is the Taylor series expansion derived in problem (3) above…
OR