Re: Interpolation with vectors
- To: mathgroup at smc.vnet.net
- Subject: [mg84716] Re: Interpolation with vectors
- From: Vince Virgilio <blueschi at gmail.com>
- Date: Fri, 11 Jan 2008 04:39:31 -0500 (EST)
- References: <flvnjk$7ck$1@smc.vnet.net>
On Jan 8, 6:42 am, dh <d... at metrohm.ch> wrote: > Hello, > > under Interpolation you find in the manual: > > "Interpolation[{{x1,f1},{x2,f2}..}] The fi can be lists or arrays of any > > dimension." > > well, try an example: > > Interpolation[{{1,{1,1}},{2,{1,2}}},InterpolationOrder->1][1.5] > > this returns a scalar of 0.875 instead of a vector! > > Am I fooling myself? > > Daniel Huber Daniel, No, you've found a bug in Interpolation. One work-around (if I recall correctly) is to apply List to each xi, e.g. Interpolation[{ { {1} , {1,1} }, { {2} , {1,2} } }, InterpolationOrder- >1][1.5] Vince Virgilio