Re: Re: ListInterpolation

• To: mathgroup at smc.vnet.net
• Subject: [mg58383] Re: [mg58369] Re: ListInterpolation
• From: Stéphane Fay <steph.fay at gmail.com>
• Date: Thu, 30 Jun 2005 04:37:19 -0400 (EDT)
• References: <d9r4tv\$55q\$1@smc.vnet.net> <200506290157.VAA15270@smc.vnet.net>
• Reply-to: Stéphane Fay <steph.fay at gmail.com>
• Sender: owner-wri-mathgroup at wolfram.com

```Thank you for your answer, but when I try

res = ListInterpolation[
Transpose[{{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10 , 11 , 12}}],
{{1, 1.3, 2, 5}, {0, 1.5, 2}}];

I get

res[1, 0.5] = 1.

whereas for me the correct answer would be res[1, 0.5] = 5/3

since {1, 1.3, 2, 5} is the x coordinate of the data table {{1, 2, 3,
4}, {5, 6, 7, 8}, {9, 10 , 11 , 12}} and {0, 1.5, 2} the y
coordinates. Where does I make a mistake?

On 6/29/05, Peter Pein <petsie at dordos.net> wrote:
> St=E9phane Fay schrieb:
> > Dear everyone,
> >
> > I have a problem with the ListInterpolation instruction. I would like
> > to specify some explicit lists of positions for grid lines like this:
> >
> > res == ListInterpolation[{{1, 2, 3, 4}, {5, 6, 7, 8}}, {{1, 1.3, 2. 5,
> > 5}, {0.5, 1.3}}]
> >
> > But it does not work: when I try to calculate res[2, 1.1], I get
> > ListInterpolation[{{1, 2, 3, 4}, {5, 6, 7, 8}}, {{1, 1.3, 2.5, 5},
> > {0.5, 1.3}}][2, 1.1]
> >
> >
> > Yours sincerely
> >
> >     Stephane Fay
> >     Paris Observatory
> >     France
> >
> Your input is not in proper format (and use "=" for assignments, not "=="):
>
> In[1]:= res = ListInterpolation[
>  Transpose[{{1, 2, 3, 4}, {5, 6, 7, 8}}],
>  {{1, 1.3, 2.5, 5}, {0.5, 1.3}}];
> From In[1]:=
> ListInterpolation::inhr:
> Requested order is too high; order has been reduced to {3, 1}. More...
>
> In[2]:= res[2, 1.1]
> Out[2]=
>  6.031081081081081
> --
> Peter Pein
> Berlin
>
>

```

• Prev by Date: Re: More help on sorting out a large list
• Next by Date: Re: Sudoku puzzle
• Previous by thread: Re: ListInterpolation
• Next by thread: Re: ListInterpolation