Fortran Program For Secant Method Matlab

Add a function of secant method. You can use either program or function according to your requirement. Also changed 'inline' function with '@' as it will be removed in future MATLAB release. The algorithm, created by T. Dekker, uses a combination of bisection, secant, and inverse quadratic interpolation methods. An Algol 60 version, with some improvements, is given in [1]. A Fortran version, upon which fzero is based, is in [2].

Example

F(x)=exp(x)-3*x tol=.001 a=1 b=2 10 c=(a+b)/2 print*,a,b,c if (f(c)*f(a))2 0,30,30 20 b=c goto 40 30 a=c 40 if (abs (a-b).lt.tol) goto 50 goto 10 50 print*,'The Root is',c end ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1.000000 2.000000 1.500000 1.500000 2.000000 1.750000 1.500000 1.750000 1.625000 1.500000 1.625000 1.562500 1.500000 1.562500 1.531250 1.500000 1.531250 1.515625 1.500000 1.515625 1.507813 1.507813 1.515625 1.511719 1.511719 1.515625 1.513672 1.511719 1.513672 1.512695 The Root is 1.512695. The ring 2 full movie in hindi free download hd.