1. Write a Newton-Raphson root solver 2. Write a bi-section root solver 3. Write a secant...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Write a Newton-Raphson root solver 2. Write a bi-section root solver 3. Write a secant method root-solver 4. Demonstrate their effectiveness on the following functions. Your solution should output, in a table, each iteration showing, at the minimum, itera- tion number and current error. (a) Find all roots of f(x) = x³ - 7.01x² + 16.05x - 12.06 cos(x) 1-x² (c) h(x) = sin(x) cos(exp(-x)) (b) g(x) = = 5. Extend your Newton-Raphson root solver written in Part 1 to the multi- dimensional case, and compute the abscissas and weights for Gauss-Legendre quadrature rules up to 6th order with a Newton convergence tolerance of € = 10-8. This is definitely a case of 'Work smarter, not harder'. 6. Using your Gauss data from Part 5, integrate the following integrations of the functions defined in Part 4: (a) (b) f(x) dx. Compare to exact answer. g(x) dx. i. Is the answer accurate? ii. If not, how can it be improved with the integration rules you have? iii. Use your improvement strategy to get at least 6 digits of accuracy in your answer. 1. Write a Newton-Raphson root solver 2. Write a bi-section root solver 3. Write a secant method root-solver 4. Demonstrate their effectiveness on the following functions. Your solution should output, in a table, each iteration showing, at the minimum, itera- tion number and current error. (a) Find all roots of f(x) = x³ - 7.01x² + 16.05x - 12.06 cos(x) 1-x² (c) h(x) = sin(x) cos(exp(-x)) (b) g(x) = = 5. Extend your Newton-Raphson root solver written in Part 1 to the multi- dimensional case, and compute the abscissas and weights for Gauss-Legendre quadrature rules up to 6th order with a Newton convergence tolerance of € = 10-8. This is definitely a case of 'Work smarter, not harder'. 6. Using your Gauss data from Part 5, integrate the following integrations of the functions defined in Part 4: (a) (b) f(x) dx. Compare to exact answer. g(x) dx. i. Is the answer accurate? ii. If not, how can it be improved with the integration rules you have? iii. Use your improvement strategy to get at least 6 digits of accuracy in your answer.
Expert Answer:
Answer rating: 100% (QA)
Part 1 NewtonRaphson Root Solver python def newtonraphsonf fprime x0 tolerance maxiterations x x0 iteration 0 error absfx while error tolerance and it... View the full answer
Related Book For
An Introduction to Statistical Methods and Data Analysis
ISBN: 978-1305269477
7th edition
Authors: R. Lyman Ott, Micheal T. Longnecker
Posted Date:
Students also viewed these accounting questions
-
Find all roots of the equation sin z = cosh 4 by equating the real parts and then the imaginary parts of sin z and cosh 4.
-
(a) Find all roots of f(x) = x2 + 4x if f(x) Z12[x]. (b) Find four distinct linear polynomials g(x), h(x), s(x), t(x) Z12[x] so that f(x) = g(x) h(x) = s(x)t(x). (c) Do the results in part (b)...
-
Functions f and g are defined on R by f (x) := x + 1 and g (x) := 2 if x 1 and g(1) := 0. lim g (f(x) g (lim f(x))
-
Explain why b x = e x ln b .
-
You take 1.00 g of an aspirin tablet (a compound consisting solely of carbon, hydrogen, and oxygen), burn it in air, and collect 2.20 g CO 2 and 0.400 g H 2 O. You know that the molar mass of aspirin...
-
Consider the idealized, symmetric two-cell wing box shown in the figure below. The area enclosed by the semi-elliptical web 45 is 51,500 mm. The shear modulus of the material is G = 27 GPa....
-
Consider the simple linear regression model fit to the solar energy data in Problem 2.3. Problem 2.3 Table B. 2 presents data collected during a solar energy project at Georgia Tech. a. Construct a...
-
If a firm goes from zero debt to successively higher levels of debt, why would you expect its stock price to rise first, hit a peak, and then begin to decline?
-
You are working with older adults in a geriatric care unit. Your nurse manager asks you to measure the intake of desserts in the dining hall. You report that 3 adults consumed 0 desserts, 27 adults...
-
Mr. M has been employed as an engineer by A Ltd., a company incorporated in Hong Kong. During the year ended 31 March 2019, Mr. M had the following income and expenditure. A monthly salary of...
-
Graphically depict the long-run graph for a purely competitive structure. Graphs and explanation required.
-
A woman purchased a copy machine for $1900 and a one-year maintenance protection plan that costs 55 cents per copy made. If sheshe spends a total of $2870 in a year, which includes the cost of the...
-
Gamble Corporation issues $100,000 of 9%, 10-year bonds dated March 1 at par on May 31. What is the entry to record the issue?
-
Molly runs a shop with two products. Product A has a unit contribution margin of $300 and Product B has a unit contribution margin of $100. In January she sold a total of 2,000 units with Product A...
-
Natalie is a long term employee at ABC Systems and has a group benefits plan which includes a basic life insurance coverage amount of two times her salary. What statement best describes Natalie's...
-
Explore the role of process intensification techniques, such as microreactor technology and membrane separation, in enhancing the efficiency and sustainability of chemical manufacturing processes....
-
What are three main takeaways or significant realizations you have had from this course? How will you or are you implementing what you have learned in this course in your career? What information,...
-
Using the parallel-axis theorem, determine the product of inertia of the area shown with respect to the centroidal x and y axes. 6 in. 9 in. 9 in- 4.5 in. in. 4.5 in.
-
In order to assess the U. S. public's opinion about national energy policy random samples were taken of 150 residents of major coal-producing states, 200 residents of major natural gas/ oil-producing...
-
The breaking strengths for 1-foot-square samples of a particular synthetic fabric are approximately normally distributed with a mean of 2,250 pounds per square inch (psi) and a standard deviation of...
-
A food processor was receiving complaints from its customers about the firmness of its canned sweet potatoes. The firm's research scientist decided to conduct an experiment to determine if adding...
-
A phenotypically abnormal individual has a phenotypically normal father with an inversion on one copy of chromosome 7 and a phenotypically normal mother without any changes in chromosome structure....
-
Explain why inversions and reciprocal translocations do not usually cause a phenotypic effect. Then explain how they can do so in certain cases.
-
A triploid plant has 18 chromosomes (i.e., 6 chromosomes per set). If we assume that a gamete has an equal probability of receiving one or two copies of each of the 6 types of chromosome, what are...
Study smarter with the SolutionInn App