Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: ListInterpolation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58369] Re: ListInterpolation
  • From: Peter Pein <petsie at dordos.net>
  • Date: Tue, 28 Jun 2005 21:57:02 -0400 (EDT)
  • References: <d9r4tv$55q$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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]
>
> I thank you in advance for your help.
>
> 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: A ToExpression question
  • Next by Date: Re: Common factors in a list
  • Previous by thread: ListInterpolation
  • Next by thread: Re: Re: ListInterpolation