Question: USING MATLAB The quadratic equation ax2+bx+c=0 normally has two roots. If a = 0 x = -c/b If b2 = 4ac x1 = x2 =
USING MATLAB
The quadratic equation ax2+bx+c=0 normally has two roots.
If a = 0
x = -c/b
If b2 = 4ac
x1 = x2 = -b/(2a);
Otherwise
x1 = [-b+sqrt(b2-4ac)]/(2a), x2 = [-b-sqrt(b2-4ac)]/(2a);
Determine the roots corresponding to each set:
(1) a = 2, b = 4, c = 1
(2) a = 4, b = 2, c = 3
(3) a = 2, b = 4, c = 2
(4) a = 0, b = 3, c = 2
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
