Exercise 1.3 : Approximation of functions The function (1) = can be approximated by the series ()~1+x+パ++ as long as x]


Exercise 1.3 : Approximation of functions<br>The function<br>(1) =<br>can be approximated by the series<br>()~1+x+パ++<br>as long as x] < 1. We would like to explore how many terms are needed to make the difference between f(x) and this series<br>approximation smaller than a given tolerance.<br>For example, for an error of 1x 10- and x=0 only one term from the series is needed, while for x=1/2<br>= 2<br>1-(1/2)<br>and<br>1.<br>1.<br>1+ラt *<br>- 1.9375<br>22<br>so n=5 terms is enough for an error of 1 x 10

Extracted text: Exercise 1.3 : Approximation of functions The function (1) = can be approximated by the series ()~1+x+パ++ as long as x] < 1.="" we="" would="" like="" to="" explore="" how="" many="" terms="" are="" needed="" to="" make="" the="" difference="" between="" f(x)="" and="" this="" series="" approximation="" smaller="" than="" a="" given="" tolerance.="" for="" example,="" for="" an="" error="" of="" 1x="" 10-="" and="" x="0" only="" one="" term="" from="" the="" series="" is="" needed,="" while="" for="" x="1/2" =="" 2="" 1-(1/2)="" and="" 1.="" 1.="" 1+ラt="" *="" -="" 1.9375="" 22="" so="" n="5" terms="" is="" enough="" for="" an="" error="" of="" 1="" x="" 10"="" and="" x1/2="" (a)="" write="" a="" function="" void="" numberofterms="" (double="" x,="" double="" error,="" int="" n)="" that="" will="" for="" any="" value="" of="" x="" less="" then="" 1="" in="" magnitude="" compare="" the="" series="" to="" the="" exact="" function="" and="" determine="" the="" minimum="" number="" of="" terms="" needed="" to="" make="" their="" difference="" less="" than="" a="" specified="" error.="" make="" sure="" you="" protect="" your="" function="" against="" bad="" inputs="" using="" control="" structures.="" (b)="" write="" a="" driver="" program="" that="" tests="" the="" function="" numberofterms="" written="" in="">
The report should contain the following sections:<br>1. list of files: list of each file contained in your submission.<br>2. usage: This section should explain how to use your program.<br>3. implementation: this section should provide a brief description of each of your program organization<br>and its implementation.<br>4. Bugs: This section should mention any known bugs. If you are unaware of any bugs, simple<br>place

Extracted text: The report should contain the following sections: 1. list of files: list of each file contained in your submission. 2. usage: This section should explain how to use your program. 3. implementation: this section should provide a brief description of each of your program organization and its implementation. 4. Bugs: This section should mention any known bugs. If you are unaware of any bugs, simple place "NONE" under this heading.

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here