synthetic data |
Please specify the boundaries on the x and y axis:
Specify the case you want to see, and, accordingly,
either the function or the node point:
|
Interpolating polynomial |
|
Interpolation error |
|
|
sqrt( x^2 + y^2) |
|
sin(pi*x)*cos(pi*y) |
|
1 / (x^2+y^2+1) |
|
Input of a function of your own:
Please type the evaluation program of your function here
using FORTRAN rules.
Your final statement must be
fu=
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,u(100),v(100),a(100,100)
which are all intialized with zero resp. .false. .
The routine has the parameters x, y
(double, input) and must return fu (double out).
never change x or y!.
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.
|
|
|
Lagrange basis function |
|
|
Specify the interpolation degrees here:
Important: both degrees between 0 and 20 !
|
own (x,y,z)-data |
Please specify the interpolation degrees
n (for x) and m (for y) here:
n=
m=
Please type the input data here in the textarea,
in array form like
| x0 | ... | xn |
y0 | z0,0 | ... | z0,n |
... | ... | ... | ... |
ym | zm,0 | ... | zm,n |
Each row of this array must begin on a new line, but may extend over several lines.
type the number of evalution points in this field ,
0 <= num <= 20
num =
and the (x,y) coordinates as a list of 2*num numbers in
this textarea :
|