clear clc

format long

display('first guess starts from -0.1')

y=newton(@exercise42,@dexercise42,-0.1,10e-6)

display('press any key for continuing...')
pause

display('second guess starts from 0.1')

y=newton(@exercise42,@dexercise42,0.1,10e-6)

display('press any key for continuing...')
pause

display('third guess starts from 0.1')

y=newton(@exercise42,@dexercise42,10,10e-6)