Question

In: Advanced Math

Set up a spreadsheet that implements the secant method and then solves each of the problems....

Set up a spreadsheet that implements the secant method and then solves each of the problems. Use the graph of each function to select an initial guess. Recall the iteration formula for the secant method: X^k+1=x^k-[f(x^k)/f(x^k)-f(x^k-1)](x^k-x^k-1)

Put the formula for the function under the heading f(xk-1) and f(xk). In the cell under xk+1, put the secant method iteration formula. In the second row, replace the previous xk-1 with xk and then xk with xk+1. Now copy the two formulas down one row. At this point, one iteration of the secant method is displayed. To see more iterations, just copy the second row down for as many iterations as desired. If too many iterations are copied and the function difference becomes exactly zero, a divide by zero error will appear.

a. f(x) x-x^1/3-2

b.f(x)=xtanx-1

c.f(x)=x^4-e^x+1

d.f(x)x^2e^x-1

Solutions

Expert Solution

SOl:

part(a):

Table of iterations using secant method for the solution of f(x) using initial guess

n x f(x)
0 -0.5 -1.7063
1 -1 -2
2 2.404829 -0.93493
3 5.393651 1.639928
4 3.490072 -0.02679
5 3.520664 -0.00061
6 3.52138 3.07E-07
7 3.52138 -3.5E-12
8 3.52138 0
9 3.52138 0

Part(b):

Secant iteration table using initial guess

 
n x f(x)
0 0 -1
1 0.5 -0.72685
2 1.830488 -7.88953
3 0.364986 -0.86054
4 0.185569 -0.96516
5 1.840659 -7.65433
6 -0.05324 -0.99716
7 -0.33692 -0.88198
8 -2.50922 -2.83865
9 0.642258 -0.51955
10 1.348291 4.959273
11 0.70921 -0.39139
12 0.755957 -0.28729
13 0.884978 0.081444
14 0.856481 -0.0122
15 0.860194 -0.00044
16 0.860334 2.53E-06
17 0.860334 -5.2E-10
18 0.860334 -8.9E-16
19 0.860334 0

Part(c):

Secant method Table with initial guess

 
n x f(x)
0 -1 1.632121
1 -2 16.86466
2 -0.89285 1.226021
3 -0.80606 0.975529
4 -0.46803 0.421749
5 -0.2106 0.191865
6 0.004264 -0.00427
7 -0.00042 0.000417
8 -8.9E-07 8.88E-07
9 1.85E-10 -1.9E-10
10 -1.3E-16 0

Part(d):

Secant Method table to approximate the solution of f(x) with initial guess

 
n x f(x)
0 0 -1
1 1 1.718282
2 0.367879 -0.80449
3 0.569456 -0.4269
4 0.797357 0.411215
5 0.685539 -0.0672
6 0.701245 -0.00852
7 0.703524 0.000217
8 0.703467 -6.7E-07
9 0.703467 -5.3E-11
10 0.703467 0

Related Solutions

Write one a MATLAB function that implements the Bisection method, Newton’s method and Secant Method (all...
Write one a MATLAB function that implements the Bisection method, Newton’s method and Secant Method (all in one function). Your function must have the following signature function output = solve(f,options) % your code here end where the input is • f: the function in f(x) =0. options: is a struct type with the following fields o method: bisection, newton or secant tol: the tolerance for stopping the iterations. maximum_iterations: the maximum number of iterations allowed. initial_guess: that is P_0; if...
a) List and explain three problems with IRR, and whether or not MIRR solves each problem....
a) List and explain three problems with IRR, and whether or not MIRR solves each problem. Your explanation should include why these are problems (why we can't just ignore these issues). b) List and explain (in one to two sentences each) two problems with payback period that are not problems for NPV. Your explanation should include why these are problems (why we can't just ignore these issues). c) There are three characteristics that we need to know about a project's...
Set up a spreadsheet showing input and output sections next to each other to facilitate ease of sensitivity analysis.
Please show answers using Excel formulas. Superficial Casting Company is considering adding a new line to its product mix. The production line would be set up in unused space in Superficial’s main plant based in Hollywood, California. The machinery’s invoice price is $208,000, another $12,000 in shipping charges is required, and installation costs would amount to $27,000. The machinery has an economic life of 4 years, and Superficial management has obtained a special tax ruling that places the equipment in...
In MATLAB write a function secant.m to apply the secant method. function [x,i] = secant(f, x0,...
In MATLAB write a function secant.m to apply the secant method. function [x,i] = secant(f, x0, x1, tol, maxiters) [x,i] = secant(f, x0, x1, tol, maxiters) performs the secant method with f(x), starting at x_0 = x0 and x_1 = x1, and continuing until either |x_i+1 - x_i| <= tol, or maxiters iterations have been taken. The number of iterations, i, is also returned. An error is raised if the first input is not a function handle. A warning is...
This assignment asks you to set up an Excel budget spreadsheet file that automatically prepares the...
This assignment asks you to set up an Excel budget spreadsheet file that automatically prepares the master budget for a company, given sales projections and information on beginning balances, production requirements, desired ending inventories, etc. Information on developing the budgets appears in Chapter 8 of your text, and examples of budget worksheets appear in the schedules throughout the chapter. Data Glamour Inc. produces and sells lady handbags. Below is information on its activities for the next few months. Sales projections...
Set up a spreadsheet-based decision model. Assume that they have the following information available:
Set up a spreadsheet-based decision model. Assume that they have the following information available:Jim makes an estimated $41,000 and Shirley makes an estimated $36,000They would like to put away 3% of their total income in a retirement account, up to a maximum of $4,000. Any amount the put in that account can be deducted from their total income for tax purposes.They are entitled to a personal exemption of $3,300 each. There is a standard deduction for married couples of $11,500,...
(Set the entire homework up in an Excel spreadsheet and answer all the questions clearly marked...
(Set the entire homework up in an Excel spreadsheet and answer all the questions clearly marked in your spreadsheet.) You are considering purchasing a machine (use your imagination) that will initially cost $205,000.00. The machine is expected to last 7 years, and you project that you can sell the worn out machine at the end of 7 years for $55,000.00 Annual operating cash inflows and outflows are projected as follows, and are assumed to occur at the end of each...
Set the entire question up in an Excel spreadsheet and answer all the questions clearly marked...
Set the entire question up in an Excel spreadsheet and answer all the questions clearly marked in your spreadsheet. You are considering purchasing a machine (use your imagination) that will initially cost $205,000.00. The machine is expected to last 7 years, and you project that you can sell the worn out machine at the end of 7 years for $55,000.00 Annual operating cash inflows and outflows are projected as follows, and are assumed to occur at the end of each...
Set up a table or spreadsheet for CSI, that illustrates the relationship among quantity (Q), price...
Set up a table or spreadsheet for CSI, that illustrates the relationship among quantity (Q), price (P), the optimal level of advertising (A), the advertising-sales ratio (A/S), and sales revenue (S). In this spreadsheet, use formula functions to set Q = 5000 -10p+40A+PA -0.8A2 -0.5 P2 A = $25+$0.625P A/S = (100XA)/S S = P x Q Establish a range for P from 0 to $125 in increments of $5 (i.e., $0, 45, $10, ...$125). To test the sensitivity of...
how would one set up an excel spreadsheet and create a plot for electric force vs...
how would one set up an excel spreadsheet and create a plot for electric force vs the product of the two charges.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT