fzero MATLAB command to find the root of an equation x+cos(x)-x^3=0 and find absolute forward, backward and relative forward and backward errors.
Introduction : fzero matlab command is used to find the root of an equation f(x)=0. This command takes inputs function f(x) and an initial guess x0 to the root. We…