Applied Numerical Analysis with MATLAB Write a program in a script file that determines the real roots of a quadratic eq

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Applied Numerical Analysis with MATLAB Write a program in a script file that determines the real roots of a quadratic eq

Post by answerhappygod »

Applied Numerical Analysis With Matlab Write A Program In A Script File That Determines The Real Roots Of A Quadratic Eq 1
Applied Numerical Analysis With Matlab Write A Program In A Script File That Determines The Real Roots Of A Quadratic Eq 1 (173.98 KiB) Viewed 37 times
Applied Numerical Analysis with MATLAB Write a program in a script file that determines the real roots of a quadratic equation: ax2 + bx + c = 0. = of 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 = b2 – 4ac . 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) 3x2 + 6x + 3 = 0 (b) – 3x2 + 4x – 6 = 0 (c) – 3x2 + 7x + 5 = 0 =
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply