Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write MATLAB quadratic root function : Write a program in MATLAB to find the roots of the second-degree equation in the form of 2bx ax
Write MATLAB quadratic root function :
Write a program in MATLAB to find the roots of the second-degree equation in the form of 2bx ax The following requirements should be addressed 1. There should be two files, the main program StudentN#.m and the function StudentN# func m StudentN# func.m should calculate the delta A. This function should be called from the main program StudentN#.m 2. The program should prompt the user to enter the values of a, b and c one by one 3. The values of a, b and c must be real (positive or negative). If the user enters a complex number (e.g. 5i), the program should prompt the user to enter another value 4. The program should provide a solution if a 0 5. Based on the value of A 4(b ac), there are three possibilities; (1) A-0; (2) A >0 and (3) A
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started