2D piecewise linear Interpolation

Please choose your input case:

function based

define a rectangular grid by number of points and a grid size n2= Important: 2 <= n2 <= 50 !
n1= Important: 2 <= n1 <= 50 !
hx= Important: 0.00001 <= hx !
hy= Important: 0.00001 <= hy !
direct input of a set of scattered (x,y) data n=Important: 3 <= n <= 2500 !List of (x,y) points

Please choose a function:

f(x,y)= x^2 + y^2
f(x,y)=2x+3y^3
f(x,y)=1/(x^2+y^2+1)
A function defined by yourself:
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.

own (x,y,z)-data : n=
3 <= n <= 2500 !
Please type here the list of n points (x,y,z) as 3*n numbers:
you might require here evaluation of the interpolating function at a set of points (must be inside of a triangle, not on an edge!):
num=
important! 0 <= num <= 20
For num > 0 type here a consecutive list of 2*num numbers. do not write outside the textarea!

Please define the rotation angles for axes x and z:
for the x-axis (in [0:180] (degrees) , 0= x-axis is screen horizontal)
for the z-axis (in [0:360] (degrees) , 0=vertical to the screen)

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

back to the theory page

 Back to the top!

18.02.2015