(a) Write a MATLAB function that computes the two roots of a quadratic polynomial q(x) =...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
(a) Write a MATLAB function that computes the two roots of a quadratic polynomial q(x) = x+bx+c with good precision. (b) Compare your computed results with MATLAB's built-in function roots ( [a b c]) for the following set of data: 1) b = -56, c = 1 2) b= 108, c = 1. (a) Write a MATLAB function that computes the two roots of a quadratic polynomial q(x) = x+bx+c with good precision. (b) Compare your computed results with MATLAB's built-in function roots ( [a b c]) for the following set of data: 1) b = -56, c = 1 2) b= 108, c = 1.
Expert Answer:
Answer rating: 100% (QA)
a Heres a MATLAB function quadraticRoots that computes the roots of a quadratic polynomial qxx2bxc w... View the full answer
Related Book For
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
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...
-
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...
-
Pick a Nigerian brand that has been very successful competing against the bigger global brands in its product category. What are the elements of its strategy that have enabled it to achieve this...
-
Bill Ronalds started a catering service called Blue Ribbon Catering. During the first month of operations, January 2017, the business completed the following selected transactions: a. Ronalds began...
-
A volumetric flask made of Pyrex is calibrated at 20.0C. It is filled to the 100-mL mark with 35.0C acetone. (a) What is the volume of the acetone when it cools to 20.0C? (b) How significant is the...
-
In an Otto cycle, air at 1 bar and \(300 \mathrm{~K}\) is compressed isentropically until the pressure rises to 16 bar. The heat is added at constant volume until the pressure rises to 30 bar....
-
Pierre, a single nonresident alien, conducts a U.S. trade or business for 80 days during the current year. Pierre reports the following income items from his U.S. activities. Indicate how each of...
-
Calculate the tension in the following figure: T 30 30 250 N T2
-
John Parsons (123-45-6781) and George Smith (123-45-6782) are 70% and 30% owners, respectively, of Premium, Inc. (11-1111111), a candy company located at 1005 16th Street, Cut and Shoot, TX 77303....
-
1. Evaluate the term "health" and the historical perspective on health promotion. 2. Examine health promotion and illness prevention teaching based on teaching principles, varied teaching learning...
-
A) Draw the logic circuit realization of the following Boolean expression as stated. Do not simplify! You may draw inverters explicitly or use inversion bubbles, as you choose. F(A,B,C)(A+B)'(B' + C)...
-
Since 2014, the Brazilian economy has faced major dilemmas in maintaining sustained growth and development. However, mistaken economic policies led the country into a deep recession, now aggravated...
-
1. Suppose you are writing a program which determines, in a two-dimensional coordinate space, whether a point, P(XP, YP), falls inside, outside a circle or on its edge. The program reads five real...
-
Instruction: Create a program and simulate the given data using the stack operation by giving the exact/ accurate stack content and give and illustrate the final answer Array Number ={32, 52, 91, 82,...
-
Consider the following graph with edges and vertices defined as follows: Start North A B C D E J F K G H L Finish Write an application which implements this graph maze using reference to a Node...
-
1 Discuss whether the sale of Mr Singhs flat will result in a capital or revenue receipt. (12 marks) INFORMATION Mr Singh is an avid reader of financial journals. Ten years ago while reading one of...
-
Ex. (17): the vector field F = x i-zj + yz k is defined over the volume of the cuboid given by 0x a,0 y b, 0zc, enclosing the surface S. Evaluate the surface integral ff, F. ds?
-
What are the operator, unknown(s), forcing function and input(s) for dy az dt +y=0
-
For the following piecewise function: (a) Express y(x) as a Fourier series, (b) Write aMATLAB program that computes the value of the Fourier series for n = 10, n = 100 and n = 1000 using a grid in x...
-
Compute the determinant of the following matrix by co-factor expansion: A = 2 1 -5 2 8 3 -4 2 11 2 11 -3 = 1 2 -1 2
-
Can the displacement of a persons trip be zero, yet the distance involved in the trip is nonzero? How about the reverse situation? Explain.
-
If the displacement of an object is 300 m north, what can you say about the distance traveled by the object?
-
An object traveling at a constant velocity vo experiences a constant acceleration in the same direction for a period of time t. Then an acceleration of equal magnitude is experienced in the opposite...
Study smarter with the SolutionInn App