Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum > General > > "Map a bidimensional function and interpolate"

Post Reply:
Name:
Email Address:

Please send email when my message is replied to.

Url (optional):
Subject:
Message: view original message?
Attachment (optional):
Please answer this:1+4 =



Original Message (ID '83335') By David:
You need to wrap your output with "Flatten". ie test[x_,y_]:=x+y; TEST=Table[{{x,y},test[x,y]},{x,0,2},{y,0,2}]; In[2]:= Flatten[TEST, 1] Out[2]:= { { {0,0}, 0}, { {0,1}, 1}, { {0,2}, 2}, { {1,0}, 1}, { {1,1}, 2},{ {1,2}, 3}, { {2,0}, 2}, { {2,1}, 3}, { {2,2}, 4} } And when you apply this to Interpolation you get an InterpolatingFunction. With this example you do however get an error telling you that there aren't enough data points for the default interpolation order of 3.