Question: HW 5 P 3 0 solutions submitted ( max: 4 ) Write a MATLAB function called HW 0 5 roots to calculate the roots for

HW5 P3
0 solutions submitted (max: 4)
Write a MATLAB function called HW05roots to calculate the roots for quadratic equation if given the value of a,b and c(a as 1 st input argument, b as 2 nd input argument, c as the 3 rd input argument).
ax2+bx+c=0
In the function file, return both roots named r1 and r2.(r1 for 'plus' sign of the formula will be the first returned value, r2 for 'minus'sign of the formula should be the second returned value)
Call your function to test for the following quadratic equation.
2x2+4x+7=0
Function (?
 HW5 P3 0 solutions submitted (max: 4) Write a MATLAB function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!