We want to find the root of the following function using fixed-point iteration: f(x)=2-2ln(x) - x...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
We want to find the root of the following function using fixed-point iteration: f(x)=2-2ln(x) - x a) Finding the root of an equation can be difficult because the algorithm may diverge or go to a different root. One way to help avoid this difficulty is to first graph the function and get an approximation of the root from the graph. Graph the above function and get an estimate of the root from the graph. b) Write a MATLAB script that will implement the fixed-point iteration algorithm to find the root. Use the approximation from (a) as the starting value. Display your root with 10 decimal places. Note: (1) You will need a convergence criteria for (b). Some programs use the machine epsilon for this. For your program, use the machine epsilon. (2) One way to check if your answer is the correct root is to calculate the residual of the answer. The residual is given by substituting your calculated root into the function; this should be very small. In your program, calculate the residual and display it with your root. We want to find the root of the following function using fixed-point iteration: f(x)=2-2ln(x) - x a) Finding the root of an equation can be difficult because the algorithm may diverge or go to a different root. One way to help avoid this difficulty is to first graph the function and get an approximation of the root from the graph. Graph the above function and get an estimate of the root from the graph. b) Write a MATLAB script that will implement the fixed-point iteration algorithm to find the root. Use the approximation from (a) as the starting value. Display your root with 10 decimal places. Note: (1) You will need a convergence criteria for (b). Some programs use the machine epsilon for this. For your program, use the machine epsilon. (2) One way to check if your answer is the correct root is to calculate the residual of the answer. The residual is given by substituting your calculated root into the function; this should be very small. In your program, calculate the residual and display it with your root.
Expert Answer:
Answer rating: 100% (QA)
The question provides a function fx 2 2lnx sqrtx and asks to find its root using fixedpoint iteratio... View the full answer
Related Book For
Numerical Methods For Engineers
ISBN: 9780071244299
5th Edition
Authors: Steven C. Chapra, Raymond P. Canale
Posted Date:
Students also viewed these programming questions
-
Explain how to derive a sequence of transformations to achieve the overall effect of performing a 2D rotation about an arbitrary point. Discuss the problems of providing tractable models of...
-
What is a function calling convention and how does it impact the design of the RISC-V instruction set architecture (ISA)? [4 marks] (d) Consider the following C function that computes the greatest...
-
Briar Company manufactures and sells dresses at a variable cost of $32 each and a fixed cost of x. It can sell 6,600 dresses at a selling price of $60 to earn an operating income of $14,800 (Option...
-
Lina Martinez wants to buy a new high-end audio system for her car. The system is being sold by two dealers in town, both of whom sell the equipment for the same price of $2,000. Lina can buy the...
-
Each month, the owner of Fays Tanning Salon records in a data file y = monthly total sales receipts and x = amount spent that month on advertising, both in thousands of dollars. For the first three...
-
A 1.0-mm-diameter, 20-cm-long copper wire carries a \(3.0 \mathrm{~A}\) current. What is the potential difference between the ends of the wire?
-
Breakeven analysis Klear Camera Company is considering introducing a new video camera. Its selling price is projected to be $1,000 per unit. Variable manufacturing costs are estimated to be $500 per...
-
There are three currencies in the world, the Mexican peso ($), the Euro (), and the Brazilian real (R). At the moment, the values of the exchange rates are ES/R =0.2, and EC/R =20. -In the absence of...
-
Suppose that the two-dimensional vectors (X1, Y1), (X2, Y2), . . . , (Xn, Yn) form a random sample from a bivariate normal distribution for which the means of X and Y, the variances of X and Y , and...
-
Quickly think of a brand you used to buy or a store where you used to shop that no longer exists. Do any of these names ring a bell?: Blockbuster, Radio Shack, Wachovia Bank, Circuit City? Businesses...
-
Write a 150-200-word summary discussing the following items. Note: You can go over the word count if so desired. 1. Explain the difference between tax deductions, tax credits, exemptions, and filing...
-
on Consider the following protocol designed so that X and Y will decide on fresh secret key Kf. It is assumed that they have previously shared an initial key K'. X->Y: IDX, N1, where N1 is a nonce...
-
What Organizational Behavior trends or issues the Hospitality and Tourism industry will face in the upcoming years? Explain the rationale of this prediction.
-
Write a code to input a binary number and convert it to a decimal number. For example: ex.1 - 1111 in decimal is 1*(2^3) +1*(2^2) +1*(2^1) +1*(2^0) = 8 + 4 + 2 + 1 = 15 in decimal. ex.2 - 10101 in...
-
Madhdi Khan, was a self-employed Electrician. He regularly worked for several companies on a contract basis. While he was an expert in his field, but he was definitely not a financial expert. His...
-
A researcher said that in a certain city, 90% of adults are older than the average age of adults in the city. Discuss whether or not this is possible.
-
The vapor pressure of the liquid NH, is measured at different temperatures. The following vapor pressure data are obtained. Temperature, K P, mmHg 217.1 223.4 234.7 588.1 Calculate the enthalpy of...
-
Develop, debug, and test a program in either a high-level language or macro language of your choice to generate the transpose of a matrix. Test it on the matrices from Prob. 9.3.
-
Develop a user-friendly program in either a high-level or macro language of your choice for the Gauss-Seidel method based on (Figure). Test your program by duplicating the results of Example 11.3.
-
Use (a) Eulers and (b) The fourth-order RK method to solve dy/dx = -2y + 4e-x dz/dx = -yz2/3 Over the range x = 0 to 1 using a step size of 0.2 with y(0) = 2 and z(0) = 4.
-
Explain the difference between idiosyncratic and systematic risks.
-
Demonstrate how to reduce risk through hedging and diversification.
-
Assume that the economy can experience four possible states: high growth, normal growth, recession, or depression. For each of those states, you expect the following stock market returns for the...
Study smarter with the SolutionInn App