Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

image text in transcribed

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

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

Database And Expert Systems Applications Dexa 2021 Workshops Biokdd Iwcfs Mlkgraphs Al Cares Protime Alsys 2021 Virtual Event September 27 30 2021 Proceedings

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Atif Mashkoor ,Johannes Sametinger ,Anna Fensel ,Jorge Martinez-Gil ,Lukas Fischer

1st Edition

3030871002, 978-3030871000

More Books

Students also viewed these Databases questions