Re: Interpolation on regions
- To: mathgroup at smc.vnet.net
- Subject: [mg117978] Re: Interpolation on regions
- From: Christopher Arthur <aarthur at tx.rr.com>
- Date: Thu, 7 Apr 2011 08:04:25 -0400 (EDT)
Try fixing one variable and interpolating many functions that way... Nabeel Butt a =E9crit : > Dear All, > Since Mathematica's interpolation works better for rectangular regions I > was playing around with the Interpolation command. I was wondering that if > Mathematica's assumes that the cordinates in the rectangular region when > passed on to Interpolation assumes as if they are of the same form as in > generated from Table. What would be a way to correct the code I have because > of I have the same set of points in a rectangular region but not ordered > like as in a Table it still assumes that the region is unstructured. I > attach my code below .Thanks ! > Nabeel > > tlist=Union[Flatten[Table[{{{x,y},(x-0.25)^2+(y-0.25)^2},{{1-x,1-y},(x-0.25)^2+(y-0.25)^2}},{x,0,1,0.1},{y,0,1-x,0.1}],2]] > g=Interpolation[tlist] > > tlist=Union[Flatten[Table[{{x,y},(x-0.25)^2+(y-0.25)^2},{x,0,1,0.1},{y,0,1,0.1}],1]] > g=Interpolation[tlist] > > >