Saladsamurai
- 3,009
- 7
So I have this surface that I am trying to make approximations on. Now I have values for f(x_1,y_1) and f(x_2,y_2). I want to find the value of f(x,y) where x and y lie between (x1, x2) and (y1, y2). I am willing to assume that f changes linearly in both x and y for this small interval. Would the appropriate interpolation function then be
f(x,y)=f(x_1,y_1) + \frac{f(x_2,y_2) - f(x_1,y_1)}{x_2 - x_1} *(x - x_1) + \frac{f(x_2,y_2) - f(x_1,y_1)}{y_2 - y_1} *(y - y_1)
?
I feel like it would be ... but I also feel like it could be
<br /> f(x,y)=<br /> f(x_1,y_1) + <br /> \sqrt{<br /> [\frac{f(x_2,y_2) - f(x_1,y_1)}{x_2 - x_1} *(x - x_1)]^2<br /> + <br /> [\frac{f(x_2,y_2) - f(x_1,y_1)}{y_2 - y_1} *(y - y_1)]^2<br /> }<br />What do you think? I am really confusing myself here
First or second one?
f(x,y)=f(x_1,y_1) + \frac{f(x_2,y_2) - f(x_1,y_1)}{x_2 - x_1} *(x - x_1) + \frac{f(x_2,y_2) - f(x_1,y_1)}{y_2 - y_1} *(y - y_1)
?
I feel like it would be ... but I also feel like it could be
<br /> f(x,y)=<br /> f(x_1,y_1) + <br /> \sqrt{<br /> [\frac{f(x_2,y_2) - f(x_1,y_1)}{x_2 - x_1} *(x - x_1)]^2<br /> + <br /> [\frac{f(x_2,y_2) - f(x_1,y_1)}{y_2 - y_1} *(y - y_1)]^2<br /> }<br />What do you think? I am really confusing myself here
