Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

Re: Interpolating arrays

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83580] Re: Interpolating arrays
  • From: dh <dh at metrohm.ch>
  • Date: Fri, 23 Nov 2007 05:37:05 -0500 (EST)
  • References: <fi3k96$bvm$1@smc.vnet.net>


Hi Fred,

i seems that for vector valued functions you have to enclose the 

independent variable in braces:

Interpolation[{{{1},{1,1}},{{2},{2,2}},{{3},{3,3}}}]

The documentation is a bit thin here.

hope this helps, Daniel



Fred Klingener wrote:

> Interpolation (according to the doc center) offers to construct an 

> interpolating function given x values and f[x] values in the following 

> format:

> 

> Interpolation[{{x1, f1},{x2, f2},...{xi, fi}...]

> 

> Down a few lines, doc center says:

> The fi can be lists or arrays of any dimension

> 

> I'm interested in interpolating between 2D geometric points {a, b}, and a 

> naive form would be

> 

> p = Interpolation[{{x1, {a1, b1}},{x2, {a2, b2}},...,{xi, {ai, bi}}...}], 

> expecting to get a form where p[x] would return a 2D point.

> 

> Too naive it seems, because it doesn't work. As far as I can determine, it 

> returns only an Interpolation on a. How come?

> 

> It's straightforward enough to construct separate 1D interpolations on a and 

> b, then reassemble them later, but that's just clumsy and seems just not the 

> Mathematica Way.

> 

> Any help?

> 

> TIA,

> 

> Fred Klingener

> 

> 

> 

> 

> 

> 

> 

> 

> 

> 




  • Prev by Date: Re: trying to Import[] USGS-resident DEM data
  • Next by Date: Re: Joining InterpolatingFunctions into Piecewise - doman?
  • Previous by thread: Interpolating arrays
  • Next by thread: Re: Interpolating arrays