Consider the polynomial ao +a1x+a2x +...ana, where ao, a1,..., an are the digits of your student...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Consider the polynomial ao +a1x+a2x +...ana", where ao, a1,..., an are the digits of your student number. Using a loop, construct an equivalent polynomial that follows Horner's rule, outputting the result. Note that using the "Horner" command here is not what I'm looking for; you won't get any marks for doing this. Q2. Write a short piece of Matlab code that does the following: 1. Initializes the function f(x) = 3/2-4x+1. This function has two roots. Use graphing software, locate approximately where those roots should be. 2. Defines two starting estimates a and b, one for each root. These estimates should be unique to your code; make them a little weird, while still being close enough to the roots! 3. Uses Newton's Method at least until subsequent estimates are within 0.001 for each root. You may do this in two separate loops, one for each root; or you may find a way to do this in a single loop. 4. Outputs your two estimates. Consider the polynomial ao +a1x+a2x +...ana", where ao, a1,..., an are the digits of your student number. Using a loop, construct an equivalent polynomial that follows Horner's rule, outputting the result. Note that using the "Horner" command here is not what I'm looking for; you won't get any marks for doing this. Q2. Write a short piece of Matlab code that does the following: 1. Initializes the function f(x) = 3/2-4x+1. This function has two roots. Use graphing software, locate approximately where those roots should be. 2. Defines two starting estimates a and b, one for each root. These estimates should be unique to your code; make them a little weird, while still being close enough to the roots! 3. Uses Newton's Method at least until subsequent estimates are within 0.001 for each root. You may do this in two separate loops, one for each root; or you may find a way to do this in a single loop. 4. Outputs your two estimates.
Expert Answer:
Posted Date:
Students also viewed these programming questions
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
I need help on this read from bottom to top. Image transcription text 7"} The second ?nancial statement to prepare is the statement of retained earnings. To determine the ending balance of...
-
A stiff, straight, horizontal wire of length 25 cm and mass 20 g is supported by electrical contacts at its ends, but is otherwise free to move vertically upward. The wire is in a uniform, horizontal...
-
When is it mandatory that a partner calculate his or her partner interest basis (outside basis)? What items affect the outside basis of a partner?
-
Ambrettolide is obtained from hibiscus and has a musk-like odor. Its preparation from a compound A is outlined in the table that follows. Write structural formulas, ignoring stereochemistry, for...
-
The study of thermodynamics enables us to understand (a) Whether the transformation of energy is feasible or not (b) To what extent the transformation will take place (c) In which direction the...
-
On January 1, 2016, Concord Corp. signs a contract to lease manufacturing equipment from Stone Inc. Concord agree to make lease payments of $47,500 per year. Additional information pertaining to the...
-
Hengxi has calculated that he needs $105,000 his first year of retirement to maintain his standard of living. He expects to receive $3,500 per month from his employer defined-benefit pension and...
-
What is the total contribution margin for the month under the variable costing approach? (Round your final answer to the nearest whole dollar).
-
If you we're an employee filing a work place stress claim how would you substantiate this claim and if you were an employer how would you defend against it
-
5. Explain how Filipinos can invest in the stock market through COL Financial. Know the purpose and function of this platform as online stock brokerage firm in the Philippines.
-
Explain the advantages and disadvantages of filling positions with (1) internal candidates and (2) external candidates. Which type of candidate typically performs best?
-
Explain what is going on, who is involved and what is the significance of the passage: "That, or a phantom spirit send you into raptures
-
Discuss how HR practices guide a company to meet its social responsibility strategy. Explain the responsibility of HR leadership in relation to establishing and adhering to ethical policies and...
-
Choose a governing body of some sort. It can be local, regional, national, foreign, or even the governing body of some organization. Make sure that the governing body you choose holds democratic...
-
3M Company reports the following financial statement amounts in its 10-K report: a. Compute the receivables, inventory, and PPE turnover ratios for both 2018 and 2017. (Receivables turnover and...
-
A bank offers customers the option of receiving interest compounded quarterly, semi-annually, or annually. If the rate of interest is the same, which is the best option for the customer?
-
What is a stock market index? What is an index designed to accomplish?
-
What are an LLC and an LLP? Why have they become more popular business entities over the past ten years? What concerns should an investor investigate before forming an LLC or LLP?
Study smarter with the SolutionInn App