Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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(r) + 3 sin() and ro = 0. Find the nth Taylor polynomial Pn(x) for f(x) about ro. Find a value n necessary for Pn(x) to approxi- mate f(x) to within 10-6 on [-7, 7]. For which values of r is the series guaranteed to converge?
image text in transcribed
image text in transcribed
Above is the answer to the third question I made. My problem lies in 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 fm --> 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 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: 86818x60

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

International Baccalaureate Computer Science HL And SL Option A Databases Part I Basic Concepts

Authors: H Sarah Shakibi PhD

1st Edition

1542457084, 978-1542457088

Students also viewed these Databases questions

Question

What was unique about this project? What was the main conflict?

Answered: 1 week ago

Question

=+21-3 Compare and contrast our senses of taste and smell.

Answered: 1 week ago