% Numerical Mathematics and Computing, Fifth Edition
% Ward Cheney & David Kincaid
% Brooks/Cole Publ. Co.
% (c) 2003
%
% file: G.m
%
% This M-file is invoked by the file 'fun_root.m'.

function y = G(x)
y = x^3 - 2*sin(x);
