Write a program in a script file that determines the real roots of a
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)
Want to see the full answer?
Check out a sample textbook solutionChapter 6 Solutions
MATLAB: An Introduction with Applications
- Algebra: Structure And Method, Book 1AlgebraISBN:9780395977224Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. ColePublisher:McDougal LittellGlencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw HillElementary AlgebraAlgebraISBN:9780998625713Author:Lynn Marecek, MaryAnne Anthony-SmithPublisher:OpenStax - Rice University
- Intermediate AlgebraAlgebraISBN:9781285195728Author:Jerome E. Kaufmann, Karen L. SchwittersPublisher:Cengage LearningFunctions and Change: A Modeling Approach to Coll...AlgebraISBN:9781337111348Author:Bruce Crauder, Benny Evans, Alan NoellPublisher:Cengage LearningCollege AlgebraAlgebraISBN:9781305115545Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage Learning