a) f(x)= arctan(2(x - 1)) - In [x]. Plot (using PYTHON) the graph of the function f(x) and describe the intervals of monotonicity of the function f. Speak also about the roots of the equation f(x) = 0. 5) Prove by analytical means (using Calculus), that the equation f(x) = 0 has exactly four real roots P1 P2 P3 P4. e) Find approximations of the roots using the codes of Problems 1 and 2, with input parameters o, TOL and NMAX of your choice (try xo values close to the real roots). d) Compare the results and the CPU times elapsed with the results ob- tained by using the PYTHON functions scipy. optimize.bisect, scipy.optimize.newton andscipy. optimize.fsolve. What do you observe? Finally, take TOL-1.e-6, NMAX=50 and execute your implementation of Newton's method with xo = -1, 0.65, 0.7, 1.7, 1.8, 1.9, 5 and 10. Comment on the results.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Please do the following questions with the full python coding and explanation below each question typed

3.
Consider the function
(e)
f(x) = arctan(2(x − 1)) – In |x|.
Plot (using PYTHON) the graph of the function f(x) and describe the intervals of
monotonicity of the function f. Speak also about the roots of the equation f(x) = 0.
(a)
(b)
Prove by analytical means (using Calculus), that the equation f(x) = 0 has exactly
four real roots P₁ P2 P3 < P4.
(c)
(d)
Compare the results and the CPU times elapsed with the results ob-
tained by using the PYTHON functions scipy.optimize.bisect, scipy.optimize.newton
andscipy. optimize.fsolve. What do you observe?
Find approximations of the roots using the codes of Problems 1 and 2, with input
parameters o, TOL and NMAX of your choice (try xo values close to the real roots).
Finally, take TOL=1.e-6, NMAX-50 and execute your implementation of Newton's
method with xo = -1, 0.65, 0.7, 1.7, 1.8, 1.9, 5 and 10. Comment on the results.
Transcribed Image Text:3. Consider the function (e) f(x) = arctan(2(x − 1)) – In |x|. Plot (using PYTHON) the graph of the function f(x) and describe the intervals of monotonicity of the function f. Speak also about the roots of the equation f(x) = 0. (a) (b) Prove by analytical means (using Calculus), that the equation f(x) = 0 has exactly four real roots P₁ P2 P3 < P4. (c) (d) Compare the results and the CPU times elapsed with the results ob- tained by using the PYTHON functions scipy.optimize.bisect, scipy.optimize.newton andscipy. optimize.fsolve. What do you observe? Find approximations of the roots using the codes of Problems 1 and 2, with input parameters o, TOL and NMAX of your choice (try xo values close to the real roots). Finally, take TOL=1.e-6, NMAX-50 and execute your implementation of Newton's method with xo = -1, 0.65, 0.7, 1.7, 1.8, 1.9, 5 and 10. Comment on the results.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY