Question: It is python homework Can you help me task 3,4?? I did task 3 just 4,5 help me please thank you Basic idea was as

It is python homework
Can you help me task 3,4??
I did task 3 just 4,5 help me please
thank you

Basic idea was as this above
+ A Task 3 Consider x = 1.41. Plot the absolut value of the error versus n. Task 4 . In the above article a method is suggested to accelerate the convergence: do,i = a;, i = 0,...,n dki dis-1,7 -4- da-1,1-1 k= 1,...,n i = 0,...,n As approximation to in the value is taken. Write a function fast_approx_In (x, n) in which this approach is implemented. . 1-4-2 Task 5 Make a plot, which is similar to the plot given below. 20Error behavior of the accelerated Carlsson Method for the log 104 2 iterations 20 3 iterations 4 iterations 10 5 iterations 10 10 20 10 WW 101 10 tos 100 10. 10 10 10 15 Figure 1: A plot to illustrate the speed of convergence of the approximation to In. Good luck! A V 127 It is based of computing the arithmetic and geometric mean of two values ai, gi: (1+x) For a given value x > 0, initialize ao = cigi and 9i+1 = Vai+19i, as an approximation to ln(x). 2", 90 = va, Iterate di+1 = Consider 2-1 aj Task 1 Write a function approx_ln (x, n) that approximates the logarithm by n steps of the above algorithm. Task 2 Plot both functions, In and approx_ln, in one plot and the difference of both functions in another plot. Do this for different values of n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
