Please execute the following code on matlab: function [abserror,relerror]=error_comparison(x,n) si=sin(x).^2; abserror1= log(x)-si relerror1=abserror1./log(x) disp(relerror1) co=co(x).^2; abserror2=...


Please execute the following code on matlab:


function [abserror,relerror]=error_comparison(x,n)


si=sin(x).^2;


abserror1= log(x)-si


relerror1=abserror1./log(x)


disp(relerror1)


co=co(x).^2;


abserror2= log(x)-co


relerror2=abserror2./log(x)


disp(relerror2)


end



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here