Message Boards Message Boards

0
|
5695 Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

ListInterpolation help?

Posted 10 years ago
POSTED BY: Paul Reiser
4 Replies
Posted 10 years ago
POSTED BY: Paul Reiser

Higher order is not currently implemented for unstructured grids: while one can create a quadratic mesh from the given point data, to compute an interpolating function the midpoint function values would be needed. There is more discussion and an example at

http://reference.wolfram.com/language/ref/message/Interpolation/udeg.html

POSTED BY: Ilian Gachevski
Posted 10 years ago

Hmm - that's not doing it. If I use p (no random added), the above gives {6.5,6.5}, not the {6.25,6.25) that I need, because it's using InterpolationOrder->1, but if I remove the InterpolationOrder->1, it gives me the unstructured grid problem again, and forces the interpolation order to 1.

POSTED BY: Paul Reiser

Try interpolating separately for each output component.

In[4]:= if1 = Interpolation[Transpose[{pp[[All, 1]], pp[[All, 2, 1]]}], InterpolationOrder -> 1];
        if2 = Interpolation[Transpose[{pp[[All, 1]], pp[[All, 2, 2]]}],  InterpolationOrder -> 1];
        if[x_, y_] := {if1[x, y], if2[x, y]}
        if[2.5, 2.5]

Out[7]= {6.19335, 6.35006}
POSTED BY: Ilian Gachevski
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract