MathGroup Archive 2011

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

Search the Archive

Re: Interpolation of a tabulated function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg115591] Re: Interpolation of a tabulated function
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sat, 15 Jan 2011 04:47:59 -0500 (EST)

data = Sort[RandomReal[{0, 10}, {8, 2}]];

f = Interpolation[data];

Plot[f[x], {x, Min[data[[All, 1]]], Max[data[[All, 1]]]}, 
 Epilog -> {Red, AbsolutePointSize[4], Point[data]},
 Frame -> True, Axes -> False, PlotRange -> All]


Bob Hanlon

---- girl17 <irexxy at gmail.com> wrote: 

=============
So, I have a list for tabulated function like that:
{{x1,y1},{x2,y2},...,{xn,yn}}, where x(i+1)-xi are not equal for all i.
I want to get an interpolated function for that array and to use this function in this way: intFucn[x], where x1<=x<=xn.
I tried to use ListInterpolation[], but it works only for 1D lists, i.e. in case if x(i+1)-xi are equal for all i.
Is there any solution for this problem?




  • Prev by Date: Re: DesignerUnits 2011-01-08 for Mathematica 8, 7, 6
  • Next by Date: Re: Inverse function
  • Previous by thread: Re: Interpolation of a tabulated function
  • Next by thread: Re: Interpolation of a tabulated function