### MATLAB Code a.) function c = cosine_rule(a,b,theta) c = sqrt(a^2 + b^2 – 2*a*b*cosd(theta)); end b.) function theta = cosinerule(a,b,c) theta = acosd((a^2 + b^2 – c^2)/(2*a*b)); end Write code that uses the functions of (a) and (b) to solve the following problem: Four circles, with centers C1, C2, C3, C4 and radii R1, R2, R3, R4, are placed so that the

MATLAB Code

a.) function c = cosine_rule(a,b,theta)

c = sqrt(a^2 + b^2 – 2*a*b*cosd(theta));

end

b.) function theta = cosinerule(a,b,c)

theta = acosd((a^2 + b^2 – c^2)/(2*a*b));

end

Write code that uses the functions of (a) and (b) to solve the

following problem: Four circles, with centers C1, C2, C3, C4 and

radii R1, R2, R3, R4, are placed so that the