QUESTION 1: Write a script file (i.e. a non-function) that computes the Secant Method root solution...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
QUESTION 1: Write a script file (i.e. a non-function) that computes the "Secant Method" root solution for the function "f(x)" = 3*x*sin(0.7x) + 12. You are to call this script file "secant.m." There are two possible conditions for stopping execution: a) When "Xrnew - Xrold | Nmax." Demonstrate the correct execution of secant.m for these two sets of parameter values: Case 1: 1) X= 7 (i.e. the first initial guess for the root) 2) X₁= 12 (i.e. the second initial guess for the root) 3) Es= 0.0002 4) Nmax = 3 Case 2: 1) Xo=7 (i.e. the first initial guess for the root) 2) X₁ 12 (i.e. the second initial guess for the root) 3) E, = 0.0002 4) Nmax = 10 You should refer to the flow chart that was done in class for this Secant root-finding method. Also, for each case, you should clearly indicate which of the two "stop execution" conditions has been met. QUESTION 1: Write a script file (i.e. a non-function) that computes the "Secant Method" root solution for the function "f(x)" = 3*x*sin(0.7x) + 12. You are to call this script file "secant.m." There are two possible conditions for stopping execution: a) When "Xrnew - Xrold | Nmax." Demonstrate the correct execution of secant.m for these two sets of parameter values: Case 1: 1) X= 7 (i.e. the first initial guess for the root) 2) X₁= 12 (i.e. the second initial guess for the root) 3) Es= 0.0002 4) Nmax = 3 Case 2: 1) Xo=7 (i.e. the first initial guess for the root) 2) X₁ 12 (i.e. the second initial guess for the root) 3) E, = 0.0002 4) Nmax = 10 You should refer to the flow chart that was done in class for this Secant root-finding method. Also, for each case, you should clearly indicate which of the two "stop execution" conditions has been met.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these mechanical engineering questions
-
Write a VBA function that computes the n th number in the Fibonacci series; do not use recursion. A 1 Exercise 11 2 n LoopFibonacci 0
-
Write a Scheme function that computes the real roots of a given quadratic equation. If the roots are complex, the function must display a message indicating that. This function must use an IF...
-
Write a Scheme function that computes the volume of a sphere, given its radius.
-
Court Casuals has 100,000 shares of common stock outstanding as of the beginning of the year and has the following transactions affecting stockholders' equity during the year. May 18 Issues 25,000...
-
You have a B-rated bond. On past evidence, what is the probability that it will continue to be rated B in one year's time? What is the probability that it will have a lower rating?
-
Fill in the blanks with an appropriate word, phrase, or symbol(s). Every complete graph has a Hamilton circuit but not necessarily a(n)________ circuit.
-
Under what circumstances should an American call option on a stock paying no dividends be exercised early?
-
Bad Ideas Inc. is the world's only manufacturer of disposable sweaters. After a sweater is made, Bad Ideas can attach buttons on the right, making it suitable for men, or on the left, making it...
-
Identify where you would initiate each form of policing, and explain the advantages your choice brings to the impacted community.
-
The Candy Co. of Lethbridge pays its workers twice each month. Data for the two pay periods on June, are shown below: Union dues must be remitted to the union treasurer by the 15th of the following...
-
Let f(x) = 9+ 6x - 5. Find f(x). f(x) = Question Help Vide for x 9
-
How did Victor Rios use his sociological imagination ? Explain
-
The Souvenir Company purchased, on 1 January 2015, a machine producing embossed souvenir badges. The machine cost 16,000 and was estimated to have a five-year life with a residual value of 1,000. The...
-
Pizza Palace only sells Pizza Packages for 150.00 each. They are a Pizza Catering Operation. Un-jumble the following income statement and answer the questions below. Interest 3,000 Advertising...
-
A project has the following after-tax cashflows. The tax rate is 30% and the appropriate discount rate is 10%. Year 0: -2,000 Year 1: 600 Year 2: 600 Year 3: 600 Year 4: 600 Year 5: 600 What is the...
-
In what manner are the treadmill of production and the treadmill of consumption inherently interrelated and mutually influential?
-
Name several operating systems that run LANs today. Do not include different versions of a single operating system. For each operating system, list its name, the platform or network it operates on,...
-
What are technical skills At what level are they most important and why?
-
In the dining philosophers problem, let the following protocol be used: An even-numbered philosopher always picks up his left fork before picking up his right fork; an odd-numbered philosopher always...
-
Migrating virtual machines may be easier than migrating processes, but migration can still be difficult. What problems can arise when migrating a virtual machine? Discuss.
-
Suppose that in Fig. 6-6 Cij + Rij > Ej for some i. What implications does this have for the system?
-
A strain rosette consisting of three strain gauges was used to measure the strains at a point in a thin plate of dimensions \(100 \times 20 \times 1 \mathrm{~mm}\). The measured strains in the three...
-
A particle of mass \(m\) slides inside a smooth hemispherical bowl of radius \(R\). Beginning with spherical coordinates \(r, \theta\) and \(\varphi\) to describe the dynamics, select generalized...
-
A small block of mass \(m\) and a weight of mass \(M\) are connected by a string of length \(D\). The string has been threaded through a small hole in a tabletop, so the block can slide without...
Study smarter with the SolutionInn App