%This graphical method calculates the fifth root of 3,
%i.e. the value of x such that x^5=3. We want our result
%to 4 decimal places. This ia a MATLAB script file.
fplot ('x^5-3',[1,2,-1,1])
grid on
fplot ('x^5-3',[1.2,1.4,-1,1])
grid on
fplot ('x^5-3',[1.24,1.26,-1,1])
grid on
fplot ('x^5-3',[1.24,1.26,-0.1,0.1])
grid on
fplot ('x^5-3',[1.245,1.247,-0.1,0.1])
grid on
%the graph is a bit "flat", the y-axis range is too
%big, so in the next command we stretch it out, so 
%we can see clearer the intercept on the axis:
fplot ('x^5-3',[1.245,1.247,-0.02,0.02])
grid on
fplot ('x^5-3',[1.2455,1.2460,-0.01,0.01])
grid on
fplot ('x^5-3',[1.24570,1.24575,-0.001,0.001])
grid on
%Now our result is 1.2457
