
% Program using g(x) as an external function. Both should be 
% in the same directory.

 a = g(pi/2)
 
 x=-2:.1:2;
 
 plot(x,g(x));

% Another faster way to obtain the same graph
% Put comments' symbol in the previous lines and uncomment the next one.

% fplot('g',[-2,2]);
