Question: ( Recursively - Defined Sequences ) . ( i ) Study the following program for a scientific calculator for calculating the terms of the sequence

(Recursively-Defined Sequences).(i) Study the following program for a scientific calculator for
calculating the terms of the sequence (pn) recursively defined by
pn=pn-1-f(pn-1)pn-1-pn-2f(pn-1)-f(pn-2)
for all n2, where
p0=1 and p1=0.8
and where the function f is given by
f(x)=xsin(0.77x)-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.77x)-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,dots,p7 of the sequence (pn)
(make certain that your calculator is in RADIAN mode before commencing calculations). Show your
work by filling in the following table; prior to entering in the table, all numerical values should be
rounded to 7-digit floating-point numbers:
(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 (W|) website to find the 10-digit approximation ?bar() of by executing the command
solve x**sin(0.77**x)=0.39in0,1
at the website (click on the ?bar()p7bar()
 (Recursively-Defined Sequences).(i) Study the following program for a scientific calculator for

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!