|
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 the i-th component of F
following
FORTRAN rules. Your
Input variables are n, i, x and f. Your code must use but not change
n, i, x and deliver f as single variable (internally this becomes f(i)). You may use here the integers 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 1000
and the constants π , e1(=exp(1)) , sqrt2(=&radic 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.
Remember of the special role of columns 1 to 6 here!
Input of the initial guess x0:
|