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
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here