Task 2: (1) (ii) The roots of the quadratic equation ax + bx + c =...
Fantastic news! We've Found the answer you've been seeking!
Question:
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)
Question Write a function that uses a b and c as inp... View the full answer
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date:
Students also viewed these mathematics questions
-
It is possible to define metallic character as we do in this book and base it on the reactivity of the element and the ease with which it loses electrons. Alternatively, one could measure how well...
-
Given decreasing marginal utility, it is possible to prove that in a mean-variance framework no individual will hold 100% of his or her wealth in the risk-free asset. Why?
-
It is possible to investigate the thermo chemical properties of hydrocarbons with molecular modeling methods. (a) Use electronic structure software to predict cHo values for the alkanes methane...
-
Prove the following statement: If a transformer having a series impedance Ze is connected as an autotransformer, its per-unit series impedance Z as an autotransformer will be SE Zoq NSE + NC Note...
-
Consider two stocks, Stock D with an expected return of 13 percent and a standard deviation of 39 percent and Stock I, an international company, with an expected return of 16 percent and a standard...
-
On January 1, 2015, Florida Investments purchases a condo for $400,000, paying $80,000 down and borrowing the remaining $320,000, signing an 6%, 30-year mortgage. Installment payments of $1,918.56...
-
Describe and calculate employer payroll taxes.
-
M. Cotteleer Electronics supplies microcomputer circuitry to a company that incorporates microprocessors into refrigerators and other home appliances. One of the components has an annual demand of...
-
Identify characteristics of partnership. E12.1 (LO 1), C Mark Rensing has prepared these statements about partnerships. 1) A partnership is an association of three or more persons to carry on as...
-
You have been assigned the task of putting together a statement for the ACME Company that shows its expected inflows and outflows of cash over the months of July 2013 through December 2013. You have...
-
The treasurer of Riley Coal Co. is asked to compute the cost offixed income securities for her corporation. Even before making thecalculations, she assumes the aftertax cost of debt is at least 3pe 2...
-
3 The following information is available for ADT Company, which produces special-order security products and uses a job order costing system. Overhead is applied using a predetermined overhead rate...
-
A 79.0 kg person is riding a bike on a level horizontal street. Together, the bike and person have a mass of 90.1 kg and a speed of 3.00 m/s. The person jumps off the bike, and just after the jump...
-
Why does the HR Manager need to be a strategic partner with top management? Being an HR manager, and you have been challenged with the task of reducing expatriate turnover. what two strategies will...
-
Determine if V 1 = ( 2 , - 1 , 3 ) V 2 = ( 4 , 1 , 2 ) V 3 ( 8 , - 1 , 8 ) Form a set that spans R ^ 3
-
Shown below are data from the Northern Company's accounting records: Year 1 Year 2 Sales Revenue $13,000,000 $14,000,000 Cost of Goods Sold 7,000,000 7,900,000 Beginning Inventory Ending Inventory...
-
What are the effects of leaving a job with unresolved conflicts? What are some of the negative impacts associated with losing your cool in the workplace? What happens if you "make a scene" when you...
-
General Electric Capital, a division of General Electric, uses long-term debt extensively. In a recent year, GE Capital issued $11 billion in long-term debt to investors, then within days filed legal...
-
Modify Listing 20.6, MultipleBallApp.java to assign a random radius between 2 and 20 when a ball is created. When the - button is clicked, one of largest balls is removed. Listing 1 import...
-
Body Mass Index (BMI) is a measure of health on weight. It can be calculated by taking your weight in kilograms and dividing by the square of your height in meters. Write a program that prompts the...
-
Write a program that displays all the numbers from 100 to 200, ten per line, that are divisible by 5 or 6, but not both. Numbers are separated by exactly one space.
-
What are three categories of funds that fall under the bond mutual fund group?
-
What is an open-end mutual fund?
-
Choose three categories of stock or bond funds in which you think you might like to invest. Explain why you think they are good investments.
Study smarter with the SolutionInn App