Function for roots ....

Illustration
Peyton - 2020-12-12T11:26:18+00:00
Question: Function for roots ....

How do I write a function that uses a, b and c as inputs to characterize ((i.e., non-equal real, equal real or non-equal complex roots) and compute the roots of the quadratic equation.

Expert Answer

Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

try something like this:

 

d = 50;
y = 2020;

out = datestr(datetime(y,1,0)+d, 'dddd')

result;

>> out
out =
    'Wednesday'
 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!