Question: ( using Matlab ) Write a function x = realRoots ( a , b , c ) which outputs real roots of the quadratic equation

(using Matlab) Write a function x = realRoots(a,b,c) which outputs real roots of the quadratic equation
a x2+bx +c=0. If there are no real roots, then the output is x =[]. Demonstrate the
performance of your function on three examples of your choice which generate two,
one, and no real roots.

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 Programming Questions!