Zeroes of a real function by bracketing

Please specify a function:
f(x) = x**x-1
f(x) = x*(x-1)**3
f(x) = exp(-x)-sin(4*pi*x)
f(x) = (x-1)*(x-2)*(x-3)*(x-4)*(x-5)*(x-6)*(x-7)
A function of your own: Please type the evaluation program of your function here using FORTRAN rules. Your final statement must be
      fu= some expression you computed before or just here depending on x
You may use the constants pi, e(=exp(1)), sqrt2(=1.414...), the integer variables i,j,k, the logicals bool1,bool2,bool3 and the double precision variables sum,h1,h2,h3,h4,y(100),z(100),a(100,100) which are all intialized with zero resp. .false. . The routine has the parameters x (double, input) and fu (double out). never change x!. first is a local integer and set 0 before calling the function the first time. You may use this in order to initialize some local data and set it 1 afterwards to avoid multiple such initialization. Your settings of the local variables are preserved during program execution.

Please specify the interval:
Important : a < b and f(a)*f(b) < 0 !
a = b =

Please specify the reduction factor eps for the interval length eps: b-a will be reduced to (b-a)*eps.
Important: 1.e-14 < eps < 1.e-2 !
eps =

Click on "evaluate", in order to submit your input.

Back to the theory page

 Back to the top!

18.02.2015