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...
-
Which fluctuate more, long-term or short-term interest rates? Why?
-
Orbit Corp., issued a $410,000, 9 percent, mortgage on January 1, 2016, to purchase warehouses. Requirements 1. Complete the amortization schedule for Orbit, Corp., assuming payments are made...
-
The plaintiff, Thelma Agnes Smith, lived with the defendant out of wedlock for several years. When the relationship ended, she sued the defendant, seeking to enforce two written agreements with him...
-
Dimitry Chernitsky is seeking part-time employment while he attends school. He is considering purchasing technical equipment that will enable him to start a small training services company that will...
-
Let G = (V,E) be a simple graph with |V| 2. The complement graph G of G is the simple graph whose vertex set is V and whose edge set consists of all the edges that have as endpoints nonadjacent...
-
Chris and Stefani Watanabe live with their two boys at 1400 Victoria Lane, Riverside, CA 92501. Chris is an accountant who has his own accounting practice. Stefani is an elementary school teacher....
-
? A milling machine (shown below) weighing 1000 kg is rigidly mounted on a concrete floor using four steel supports (one at each corner of the machine base). Each support has a stiffness, k = 2000...
-
What is referred to by the term "common tonality practice"? What periods of history does it cover?
-
For the Research Project, each student will select a compelling problem confronting New York City and will analyze it using the problem-solving approach described in Chapter 3 of Thinking Critically....
-
You are a mentor teacher in an early learning program. Your administrator has asked you to support your team in developing reflective practice as it pertains to observation and assessment. You decide...
-
To become a more effective speaker I believe the best strategies are using clarity in your speech, avoiding words that may have different meanings to the audience, avoiding curse words, and using...
-
paragraph format: How difficult or easy did you find working through Galileo using your own key terms? Did you make use of sources you located on another source's reference or works cited page? ...
-
You are creating a two stock portfolio and you've got the following information: Stock A Stock B Stock C Market Beta 1.2 0.6 0.9 SD 23% 17% 21% 24% Portfolio Weight 25% 45% 30% Based on the...
-
What is the difference between direct materials and indirect materials?
-
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?
-
An investor is considering adding three new securities to her internationally focused, fixed-income portfolio. She considers the following non-callable securities: 1-year government bond 10-year...
-
Jo Akumbas portfolio is invested in a range of developed markets fixed-income securities. She asks her adviser about the possibility of diversifying her investments to include emerging and frontier...
-
An analyst is reviewing various asset alternatives and is presented with the following information relating to the broad equity market of Switzerland and various industries within the Swiss market...
Study smarter with the SolutionInn App