EBK MATLAB: AN INTRODUCTION WITH APPLIC
EBK MATLAB: AN INTRODUCTION WITH APPLIC
5th Edition
ISBN: 8220102007642
Author: GILAT
Publisher: YUZU
bartleby

Videos

Textbook Question
Book Icon
Chapter 6, Problem 12P

Write a program in a script file that determines the real roots of a quadratic equation a x 2 + b x + c = 0 . Name the file quadroots. When the file runs, it asks the user to enter the values of the constants a, b, and c. To calculate the roots of the equation the program calculates the discriminant D, given by:

D = b 2 4 a c

If D> 0, the program displays message “The equation has two roots,” and the roots are displayed in the next line.

If D = 0, the program displays message “The equation has one root,” and the root is displayed in the next line.

If D< 0, the program displays message “The equation has no real roots.”

Run the script file in the Command Window three times to obtain solutions to the following three equations:

(a) 3 x 2 + 6 x + 3 = 0 (b) 3 x 2 + 4 x 6 = 0 (c) 3 x 2 + 7 x + 5 = 0

Blurred answer
Students have asked these similar questions
solve for the following dc quantities:a. V B(Q1) . b. V E(Q1) . c. I E(Q1) . d. V C(Q1) . e. V B(Q2) . f. V E(Q2) . g. I E(Q2) . h. V C(Q2) .
Can you solve this, please?
Q2/ Determine and plot the result x(n) of the following operations: X(z) = (z + z'- 3z- +4z 2 + z³)(z² - 6z + 4z-5 + z) %3D is linear or not

Chapter 6 Solutions

EBK MATLAB: AN INTRODUCTION WITH APPLIC

Knowledge Booster
Background pattern image
Electrical Engineering
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:PEARSON
Text book image
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Electrical Engineering
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Text book image
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:9780078028229
Author:Charles K Alexander, Matthew Sadiku
Publisher:McGraw-Hill Education
Text book image
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:9780134746968
Author:James W. Nilsson, Susan Riedel
Publisher:PEARSON
Text book image
Engineering Electromagnetics
Electrical Engineering
ISBN:9780078028151
Author:Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:Mcgraw-hill Education,
Interpreting Graphs of Quadratic Equations (GMAT/GRE/CAT/Bank PO/SSC CGL) | Don't Memorise; Author: Don't Memorise;https://www.youtube.com/watch?v=BHgewRcuoRM;License: Standard YouTube License, CC-BY
Solve a Trig Equation in Quadratic Form Using the Quadratic Formula (Cosine, 4 Solutions); Author: Mathispower4u;https://www.youtube.com/watch?v=N6jw_i74AVQ;License: Standard YouTube License, CC-BY