Question: QUESTION 2 : [ 3 5 ] A cubic polynomial ( i . e . of degree 3 ) can consists of both real and

QUESTION 2: [35] A cubic polynomial (i.e. of degree 3) can consists of both real and complex roots.
Write a function "complex_cubic" that will accept a vector of numbers that represents the
coefficients of any cubic polynomials as the input argument. The function will return ONLY the
complex roots of the cubic polynomials. If there are no complex roots, the function will display a
message that there are no complex roots. The following examples illustrate 2 different scenarios when
the function complex_cubic is called.
Example 1: in the Command Window:
Example 2: in the Command Window:complex_cubic(y)
There are ?bar(no) complex roots
Give answer In MATLAB code please!!
 QUESTION 2: [35] A cubic polynomial (i.e. of degree 3) can

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!