Professional Documents
Culture Documents
Write A Function That Uses A, B and C As Inputs To...
Write A Function That Uses A, B and C As Inputs To...
Write A Function That Uses A, B and C As Inputs To...
chegg.com/homework-help/questions-and-answers/write-function-uses-b-c-inputs-characterize-e-non-equal-real-equal-
real-non-equal-complex--q65431335
Question
Expert Answer
Part-1
% part - (i)
% function
takes 3 arguments a,b,c and return
D = b.^2 - 4.*a.*c;
%% computing roots
of equation
r1 = (-b + D.^0.5)./(2.*a);
r2 = (-b - D.^0.5)./(2.*a);
%% printing characterstics
based on D
if D > 0 %% if D is positive
real valued roots");
display("A pair of non-equal
elseif D == 0 % if D is zero
[root1,root2] = characterise(1,0,-1);
display(root1); display(root2);
[root1,root2] = characterise(1,-2,1);
display(root1); display(root2);
[root1,root2] = characterise(1,0,1);
display(root1); display(root2);
Post a question
Q:
A:
See answer
Q:
Struggling with parts 5 and 6. Please help simplify the BooleanEquation below.
A:
See answer