Collocation: Boundary value problem - user defined

Please specify the dimension of your testcase here. It must be in the range 1,..,10:
n=

Please specify the number of initial grid points here: this must be in the range {3,1000}
minit =

Select two components of y for plotting. index1=index2=1 is allowed
index1 = Important: index1 from 1,...,n !
index2 = Important: index2 from 1,...,n !

Here you decide whether to use some default values or to specify these explicitly:
Use the defaults
itmax= must be in {1,...,1000}
tol= must be in [1.0e-12,1.0e-2]
smally= must be >= 1.0e-12
specify whether to print a solution table or not:
no
yes

Please write here the piece of code which computes the functions F1,...,Fn which make up the ode's right hand side F(x,y). This must have the mathematical structure
Fi = Fi(x,y(1),...,y(n)).
You must obey the
FORTRAN conventions.
Input values are n, x, y, output value is f. The left hand side of this must be f(i) = with i ranging from 1 to n. You might use here variables i,j,k (e.g. for loops or counting), the logicals bool1, bool2 , bool3, a vector of 100 components v(.) , the variables h1,h2,h3,h4 (e.g. for intermediate calculations) which all are initialized with zero resp. false and the constants pi, e, sqrt2 (with their mathematical meaning). No other variables can be used.

Please write here the piece of code which computes the functions R which make up the boundary conditions:
The input variables are the vectors ya and yb and the result is a vector r, all of dimension n. You must formulate these such that the condition r = 0 corresponds to R(ya,yb) = 0. You must obey the FORTRAN conventions.
The problem variable n can be used. You might use here local variables i,j,k (e.g. for loops or counting), the logicals bool1, bool2 , bool3, a vector of 100 components v(.) , the variables h1,h2,h3,h4 (e.g. for intermediate calculations) which all are initialized with zero resp. false and the constants pi, e, sqrt2 (with their mathematical meaning).

Please specify here the interval bounds
a =
b =

Please specify whether you know the exact solution or not:
The exact solution is known. Write the piece of code for comtuing it below.
There is only one input variable x. The result must be named y
The rules for coding this piece of program given above apply.
The exact solution is not known

Here you decide whether to generate the initial guess for the solution internally or to specify it directly:
generate it internally
This requires the input of the code for ytrue!

Specify the amount of perturbation here:
perturb =
Direct input of yinit
This requires minit × n values!

Warning!!! - This may take some time.

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

Back to the theory page

 Back to the top!

04.06.2016