|
Your own testcase: Please specify the dimension here in the range {4,..,1200}
n =
Please specify here the four components of x for which the development over
the iteration will appear in a plot (must be in {1,..,n}, can be equal):
ind1 =
ind2 =
ind3 =
ind4 =
Input of a piece of code to compute F
following
FORTRAN rules. Your
input variables are n, x and F. Your code must use but not change
n, x and deliver F as a vector with components 1,..,n written as f(..)= ..).
You may use here the integers i,j,k
(e.g. for counting or loops), real variables sum,x1h,x2h,x3h,x4h,x5h,x6h,x7h,x8h,x9h
(e.g. for intermediate values), three vectors y,z,a each of length 1200
and the constants π , e1(=exp(1)) , sqrt2(=√ 2) and three logicals
bool1, bool2, bool3 (e.g. for results of arithmetic comparisons). All these
variables are initalized by zero resp. .false., but if you changed their values then these
changes are preserved for later use. For example you might store some constants in a
for later use if bool1=.false. then set bool1=.true. and do not repeat these
initializations as long as bool1 evaluates as .true. There is also an output variable ier initialized
by 0. If you set ier=1 (for example you need log(x(1)) but x(1) <- 0) then this is interpreted as
''function evaluation impossible''. If this occurs outside
the computation of σ the code terminates unsuccessfully.
Remember of the special role of columns 1 to 6 here!
Input of the initial guess x0:
|