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...
-
On March 31, 2010, the balances of the accounts appearing in the ledgers of EI Dorada Furnishings Company, a furniture wholesaler, are as follows: Required (a) Prepare a multiple-step Income...
-
Charu Khanna received a Form 1099-B showing the following stock transactions and basis during 2016: None of the stock is qualified small business stock. The stock basis was reported to the IRS....
-
Use the data in Exercise 21 in Section 13.1 for the following. a. Compute a point estimate of the mean lifespan of butterflies with a wingspan of 30 millimeters. b. Construct a 95% confidence...
-
How might XYZ Software Company arrive at the values in the above table? For each entry, describe the process of determining the cost per incident and frequency of occurrence.
-
If a business combination occurs and the consideration paid exceeds the fair value of the identifiable net assets of the subsidiary on the acquisition date and the parent acquires less than 100% of...
-
Find the simple interest for each of the following. Round to the nearest cent. 1. $27,850 at 7.75% for 100 days 2. $7800 at 9.25% for 4 months 3. A loan of $5800 at 9% made on May 22 and due July 5...
-
1. Sandra Dean is considering purchasing shares in DM Designs. The share price is currently $64. Alternatively, Sandra can buy an out of the money call option with a striking price of $65, that is...
-
Stephanie\'s bridal shoppe sells wedding dresses. The averageselling price of each dress is $1000, variable costs are $400 andfixed costs are $110000. How many dresses must the bridal shoppesell to...
-
Frontier Industries is bringing a new product to the market next quarter and is using the target cost approach. The company projects the product will sell for $16.20 per unit and projects total sales...
-
Phosphorous (P) has an atomic number of 15 and an atomic mass of 31. Determine Number of protons Number of electrons Number of neutrons Number of electrons in 1st energy shell Number of electrons in...
-
Your accounts receivable clerk, Karen Adams, to whom you pay a salary of $1,520 per month, has just purchased a new Acura. You decide to test the accuracy of the accounts receivable balance of...
-
Concord Company's income statement contained the following condensed information. CONCORD COMPANY Income Statement For the Year Ended December 31, 2022 Service revenue Operating expenses, excluding...
-
___________ to win is a consultant strategy that uses a low estimate to obtain a job, with the implication that the time and cost will later be renegotiated. Question 18Select one: a. Parkinson's Law...
-
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.
-
You are given the following information about two companies, partly extracted from their most recent statement of financial position and income statement, and partly taken from the financial press....
-
You are given the following information about Swin Gin plc: You are required to calculate the P/E ratio for each year, and comment on how the market appears to have reacted to changes in EPS. Year 1...
-
Assess the usefulness of P/E ratios and suggest how they might be misleading.
Study smarter with the SolutionInn App