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

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: [mg115573] Re: Interpolation of a tabulated function
  • From: Gabriel Landi <gtlandi at gmail.com>
  • Date: Sat, 15 Jan 2011 04:44:30 -0500 (EST)

Sorry if I misunderstood the problem but would it be something like the
following?

x=RandomReal[{0,10},{20}]; (*Generate random x*)

data=Transpose[{x,x^2}] (*The function is now y=x^2*)

intFunc=Interpolation[data];

Show[ListPlot[data],Plot[intFunc[x],{x,0,10}]]

It worked over here
Hope it helps,

Gabriel

On Fri, Jan 14, 2011 at 9:16 AM, 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: Jon McLoone presents Mathematica 8 in the Benelux at the CWI and Utrecht University
  • Next by Date: Re: DesignerUnits 2011-01-08 for Mathematica 8, 7, 6
  • Previous by thread: Re: Interpolation of a tabulated function
  • Next by thread: Re: Interpolation of a tabulated function