Question

4. Show that the sequence of iterates r(k) defined by r(k) 1 +(rk)2 converges for an arbitrary choice of x(0) є R. Carry out

0 0
Add a comment Improve this question Transcribed image text
Answer #1


Matlab code for sequence of iteration clear all close all %Function for sequence Displaying the function fprintf For the funAfter 5 iteration xk=0.260793 After 6 iteration xk 0.244185 After 7 iteration xk-0.230444 After 8 iteration xk-0.218824 After

%%Matlab code for sequence of iteration
clear all
close all

%Function for sequence
f=@(x) x./(1+x.^2);
%Displaying the function
fprintf('For the function \n')
disp(f)
%initial guess

xk=2;
fprintf('For initial guess %0.2f\n',xk)
x_exact=0.0022360;
%loop for iterations
for i=1:1000
    xk=f(xk);
    %printing result for 10 iteration
    if i<=10
        fprintf('\tAfter %d iteration xk=%f\n',i,xk)
    end
    xx(i)=xk;
    error(i)=abs(xk-x_exact);
end

%Plot of order of convergence

loglog(error(1:end-1),error(2:end),'r.')
title('loglog plot for order of convergence')
xlabel('error(k)')
ylabel('error(k+1)')

%fitting of error plot
ab=polyfit(log(error(1:end-1)),log(error(2:end)),1);
yy=polyval(ab,log(error(1:end-1)));
hold on
loglog(error(1:end-1),exp(yy));
legend('Actual data','fitted data','location','northwest')
fprintf('\nFrom the plot it can be shown that the order of convergence is linear.\n')

%plot(xx)
%%%%%%%%%%%%%% End of Code %%%%%%%%%%%%%%%%

Add a comment
Know the answer?
Add Answer to:
4. Show that the sequence of iterates r(k) defined by r(k) 1 +(rk)2 converges for an arbitrary ch...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 2. Let {xn}nEN be a sequence in R converging to x 0. Show that the sequence R. Assume that x 0 an...

    2. Let {xn}nEN be a sequence in R converging to x 0. Show that the sequence R. Assume that x 0 and for each n є N, xn converges to 1. 3. Let A C R". Say that x E Rn is a limit point of A if every open ball around x contains a point y x such that y E A. Let K c Rn be a set such that every infinite subset of K has a limit...

  • 1. (a) (3 pts) Show that the sequence defined by p. = 1/n converges linearly to...

    1. (a) (3 pts) Show that the sequence defined by p. = 1/n converges linearly to p = 0. (b) (7 pts) Generate the first five terms of the sequence for using Aitken's Amethod. PL

  • In the power method, let rk d(x(k+1))/ф(z(k)). We know that limk-oo rk Show that the relative err...

    Please answer both part. Thanks. In the power method, let rk d(x(k+1))/ф(z(k)). We know that limk-oo rk Show that the relative errors obey 1- Ai where the numbers ck form a convergent (and hence bounded) sequence. (Continuation) Show that rk +1-λι-(c+&J(rk-A) where Icl < 1 and limn-o0 Sk 0, so that Aitken acceleration is applicable. In the power method, let rk d(x(k+1))/ф(z(k)). We know that limk-oo rk Show that the relative errors obey 1- Ai where the numbers ck form...

  • 5. Using the Weierstrass M-Test, show that a sin (3) converges in all n=1 of R....

    5. Using the Weierstrass M-Test, show that a sin (3) converges in all n=1 of R. 6. Determine the type of convergence of fn (x) as n - as for fn (2) -nac ve Te [0, x). 7. Determine if fn (x) = converges pointwisely or uniformly on R. 8. Consider fn (x) = x"on (0,1), prove that { fn} converges pointwisely. 9. Prove that the sequence fn (2) for 2 € 2,) converges uni- formly. 10. Determine the type...

  • (2) Let {fJ be a sequence of continuous, real-valued functions that converges uniformly on the in...

    (2) Let {fJ be a sequence of continuous, real-valued functions that converges uniformly on the interval [0,1 (a) Show that there exists M> 0 such that n(x) M for all r E [0,1] and all n N. (b) Does the result in part (a) hold if uniform convergence is replaced by pointwise convergence? Prove or give a counterexample (2) Let {fJ be a sequence of continuous, real-valued functions that converges uniformly on the interval [0,1 (a) Show that there exists...

  • Show that the sequence is arithmetic. Find the comm {Cn} = {9-2n} Show that the sequence...

    Show that the sequence is arithmetic. Find the comm {Cn} = {9-2n} Show that the sequence is arithmetic. d=CH-CH-1 = (9 - 2n) - ( ) (Simplify your answers.) What is the value of the common difference? What is the value of the first term? What is the value of the second term? What is the value of the third term? What is the value of the fourth term? Write out the sum. (k+7) k=1 Find the first second, and...

  • 3. Consider the sequence (x,) with x, =3 defined recursively by the ruleX 4-x Explore the...

    3. Consider the sequence (x,) with x, =3 defined recursively by the ruleX 4-x Explore the sequence with your calculator: a. 1 STO X STO 3-X ENTER, ENTER ENTER ENTER. 4-x Apparently the sequence diverges / converges to b. State the MONOTONE CONVERGENCE THEOREM: c. Use induction to show that (x) is decreasing for all n when x, 3 d. Use induction to show that (x.) is bounded below by 0 when x,- 3. e. Conclude from (b-d): d. To...

  • Problem 2 Statement: We know that the binomial series k k(k-1) k1 2)(k -n+1 n=0 converges for l <...

    Problem 2 Statement: We know that the binomial series k k(k-1) k1 2)(k -n+1 n=0 converges for l < 1. (a) Use the binomial series to find the Taylor series for f(x)Va centered at z 16. What is the radius 16+ ( 16). of convergence R for your Taylor series? Hint: Problem 2 Statement: We know that the binomial series k k(k-1) k1 2)(k -n+1 n=0 converges for l

  • Question 2. Monotone Convergence Define a sequence (an) inductively by ai = 1 and an+1 =...

    Question 2. Monotone Convergence Define a sequence (an) inductively by ai = 1 and an+1 = ("p) (a) Show that, for any k E N, if 0 <a << 2 then 0 < ak+1 <2, and deduce that a, E (0,2) for all E N (b) Show that the sequence (an) is increasing and bounded above. (c) Prove that the sequence converges, and find its limit Question 2. Monotone Convergence Define a sequence (an) inductively by ai = 1 and...

  • 3. A sequence is a map a N°R, typically written (an) = (ao, a1, a2, a3, a4,) As an example, the sequence (an) = 1/(...

    3. A sequence is a map a N°R, typically written (an) = (ao, a1, a2, a3, a4,) As an example, the sequence (an) = 1/(n2 +1) begins (1, 1/2, 1/5, 1/10, 1/17,..) Here is a useful fact relating sequences and continuity: A function f(x) is continuous at x c if and only if for every sequence (an) that converges to c, written anc, then f(x,) f(c). Alternatively, if you and f(yn)L" with L' L", then f is not continuous at...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT