Question: please answer in MATLAB and provide the code please orgainze the two problems properly thank you Write an user defined function that determines the real

please answer in MATLAB and provide the code
please orgainze the two problems properly
thank you
please answer in MATLAB and provide the codeplease orgainze the two problems
properly thank you Write an user defined function that determines the real

Write an user defined function that determines the real roots of a quadratic equation ax2+bx+c=0. Use the following structure for your function: [] = quadraroots (a,b,c). To calculate the roots of the equation, the program calculates the discriminant D, given by: D=b24ac If D>0 the program displays "The equation has two roots and " and calculates them using x1=2ab+Dx2=2abD If D=0, the program displays "The equation has one root .", and calculate it using x1=2ab If D

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!