Answered step by step
Verified Expert Solution
Question
1 Approved Answer
m 2. (Recursively Defined Sequences). (i) Study the following program for a scientific calculator for calculating the terms of the sequence (pn) recursively defined by
m
2. (Recursively Defined Sequences). (i) Study the following program for a scientific calculator for calculating the terms of the sequence (pn) recursively defined by pn=pn1f(pn1)f(pn1)f(pn2)pn1pn2 for all n2, where p0=1andp1=0.8 and where the function f is given by f(x)=xsin(0.78x)0.39 (replace p0 and p1 in the program with the corresponding values given above, and replace f(X) and f(Y) with correct expressions representing the values of the function f given above; say, f(x) should be replaced with Xsin(0.78x)0.39 Prior to studying the above program, it is a good idea to start with creating your own program for calculating the terms pn in a familiar programming language, and/or in Excel (OpenOffice), and then to compare your program with the program for a sci calculator. (ii) Execute the program for a sci calculator to get the terms p2,p3,,p10 of the sequence (pn) (make sure that your calculator is in it RADIAN mode). Present the results of your calculations in a table of the form All terms pk must be rounded to eight decimal places after the period. (iii) It can be shown that in fact the sequence (pn), generated by the so-called Secant Method for root finding problems, converges to the unique root of the function f in [0,1]. With this in mind, use the WolframAlpha ( / ) website to find the 10-digit approximation ~ of by executing the command solvexsin(0.78x)=0.39in[0,1] at the website (click on the button on the output page in order to get all ten digits of if necessary). (iv) Find the relative error RE(~p10) in the approximation of ~ by the term p10 you have found in (ii). at the website (click on the button on the output page in order to get all ten digits of ~ if necessary). (iv) Find the relative error RE(~p10) in the approximation of ~ by the term p10 you have found in (ii)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started