Please solve this question using MATLAB, I found a solution for it in chegg, but the solution
Fantastic news! We've Found the answer you've been seeking!
Question:
Please solve this question using MATLAB, I found a solution for it in chegg, but the solution was not correct, please solve it with the code and output.
Transcribed Image Text:
Task 2: (1) (ii) The roots of the quadratic equation ax² + bx + c = 0 are given by X = -b± √b²-4ac 2a . Based on the sign of the discriminant D (i.e. D=b²-4ac), it is possible to discern the nature of the roots according to: • D > 0: A pair of non-equal real valued roots. D = 0: A pair of equal real valued roots. D<0: A pair of non-equal complex valued roots. [25 marks] Write a function that uses a, b and c as inputs to characterize ((i.e., non-equal real, equal real or non-equal complex roots) and compute the roots of the quadratic equation. Write an m-file that tells the user if the quadratic equation ax² + bx+c = 0 with input values of a, b and c has 1) Two real roots with opposite signs 2) Two complex roots 3) Plot the curve ax² + bx+c = 0 over sufficient intervals (i.e., from 0.9 times of the smallest root to 1.1 of the largest root.) to illustrate the results obtained in (1) and (2). Coding: Giving comments and brief information about codes [5 marks] Part (i) results [5 Marks] Part (ii) results [15 Marks] Task 2: (1) (ii) The roots of the quadratic equation ax² + bx + c = 0 are given by X = -b± √b²-4ac 2a . Based on the sign of the discriminant D (i.e. D=b²-4ac), it is possible to discern the nature of the roots according to: • D > 0: A pair of non-equal real valued roots. D = 0: A pair of equal real valued roots. D<0: A pair of non-equal complex valued roots. [25 marks] Write a function that uses a, b and c as inputs to characterize ((i.e., non-equal real, equal real or non-equal complex roots) and compute the roots of the quadratic equation. Write an m-file that tells the user if the quadratic equation ax² + bx+c = 0 with input values of a, b and c has 1) Two real roots with opposite signs 2) Two complex roots 3) Plot the curve ax² + bx+c = 0 over sufficient intervals (i.e., from 0.9 times of the smallest root to 1.1 of the largest root.) to illustrate the results obtained in (1) and (2). Coding: Giving comments and brief information about codes [5 marks] Part (i) results [5 Marks] Part (ii) results [15 Marks]
Expert Answer:
Answer rating: 100% (QA)
Matlab code for finding roots clear all close all two real roots with opposite sign a1 b7 c10 fprint... View the full answer
Related Book For
Statistics Principles and Methods
ISBN: 978-0470904114
7th edition
Authors: Richard A. Johnson, Gouri K. Bhattacharyya
Posted Date:
Students also viewed these mathematics questions
-
please solve this question using excel Can you simulate two sequential coin tosses and compute the relative frequencies? Hint: Consider the possible outcomes for a given trial.
-
please try to solve this question using Matlab and also explain it
-
PLEASE SOLVE THIS QUESTION POSTING 4TH TIME STILL WAITING FOR SOLUTION. 2. Given Figure 2 below, complete the following tasks: a). Determine the position of the centroid using point P as a reference...
-
Which of the following represents the GREATEST risk created by a reciprocal agreement for disaster recovery made between two companies? A. Developments may result in hardware and software...
-
Besant Company, a Texas-based corporation, paid $60,000 to purchase an air conditioner on January 1, 2003. During 2013, surging energy costs prompted management to consider replacing the air...
-
The Dude Map Go to $h t t p: / / q z . c o m / 316906 / t h e-$ dude-map-how-american-men-refer-to-their-bros/ to see "The dude map: How Americans refer to their bros,"89 a heat map of the United...
-
Identifying Potential Frauds and Recommending Procedures to Improve Control You are auditing the Alaska branch of Far Distributing Co., a branch that has substantial annual sales, all of which are...
-
The following information is from the trial balance of Mills Manufacturing Company: Required 1. Manufacturing organizations use asset accounts that are not needed by retail organizations. a. List the...
-
The crew of a helicopter need to land temporarily in a forest and spot a flat horizontal piece of ground (a clearing in the forest) as a potential landing site, but are uncertain whether it is wide...
-
Ralph and Kathy Gump are married with one 20-year-old dependent child. Ralph earns a total of $98,000 and estimates their itemized deductions to be $28,500 for the year. Kathy is not employed. Use...
-
Imagine that the spaces between your teeth are like your kitchen floor. It gets dirty, but regular sweeping and mopping help keep it clean. Unfortunately, the longer you neglect them, the more...
-
In a proportionate liquidating distribution, Ashleigh receives a distribution of $30,000 cash, accounts receivable (basis of $0, fair market value of $40,000), and land (basis of $40,000, fair market...
-
Assume the following information pertaining to star company: Prime Costs $195000 Conversion Costs $221000 Direct Materials used $85000 Beginning work in process $98000 Ending work in process $81000...
-
Mandren Inc. has a fire insurance policy from the Blundi Insurance Company with a 90% coinsurance clause based on replacement cost. The replacement cost of the building is $600,000. The face amount...
-
Assume Zheng Company has the following sales and production budget figures for backpacks: January February March Sales 5,000 backpacks 7,000 backpacks 6,500 backpacks Production 5,400 backpacks 7,200...
-
For closing on September 18, what amount of prorated rent will the seller owe the buyer for a garage apartment that rents for $465 per month? The rent was paid on September 1 and the tenant has paid...
-
Risk of baldness increases with age, and risk of IHD increases with age. Age is therefore a confounder (a common cause) of the relationship between baldness and risk of IHD. Does baldness also...
-
Consider the advantages and disadvantages of extending property rights so that everyone would have the right to prevent people imposing any costs on them whatsoever (or charging them to do so).
-
Refer to Exercise 5.96. (a) List the x values that lie in the interval - to + and calculate P[u - < X < u + ]. (b) List the x values that lie in the interval - 2 to + 2 and calculate P [ - 2 <...
-
(b) Show that SSE = (1 - r2)Syy. (
-
Refer to the data in Exercise 10.60. Suppose you wish to establish that the mean response of 35-44 year olds is larger than that of 19-24 year olds by more than 150 dollars. (a) Formulate the null...
-
Express the vibration of a machine given by \(x(t)=-3.0 \sin 5 t-2.0 \cos 5 t\) in the form \(x(t)=A \cos (5 t+\phi)\).
-
An exponential function is expressed as \(x(t)=A e^{-\alpha t}\) with the values of \(x(t)\) known at \(t=1\) and \(t=2\) as \(x(1)=0.752985\) and \(x(2)=0.226795\), respectively. Determine the...
-
If the motion of a machine is described as \(8 \sin (5 t+1)=A \sin 5 t+B \cos 5 t\), determine the values of \(A\) and \(B\).
Study smarter with the SolutionInn App