MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Interpolation on regions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg117967] Interpolation on regions
  • From: Nabeel Butt <nabeel.butt at gmail.com>
  • Date: Wed, 6 Apr 2011 05:13:03 -0400 (EDT)

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]


-- 
"We have not succeeded in answering all our problems.The answers we have
found only serve to raise a whole set of new questions.In some ways we feel
that we are as confused as ever,but we believe we are confused on a higher
level and about more important things."
"Maybe one day we get to see all the beauty present in this world"


Nabeel Butt
UWO,London
Ontario, Canada


  • Prev by Date: Re: package construction
  • Next by Date: Re: Multiplying Polynomials
  • Previous by thread: Hierarchical clustering, Ward's linkage
  • Next by thread: Re: Interpolation on regions