%% Root Starting From One Point
% Calculate \pi by finding the zero of the sine function near 3.

fun = @sin; % function
x0 = 3; % initial point
x = fzero(fun,x0)

% Copyright 2015 The MathWorks, Inc.