Re: Evaluate a spline function

*To*: mathgroup at smc.vnet.net*Subject*: [mg74090] Re: Evaluate a spline function*From*: dh <dh at metrohm.ch>*Date*: Fri, 9 Mar 2007 02:04:53 -0500 (EST)*References*: <esola2$ef5$1@smc.vnet.net>

Hi Ivan, you seem to have misunderstood something. Interpolation returns a function, e.g. f, if you feed it data of the form: {{x1,y1},{x2,y2},..}. You get a value by: f[x] where x is not the order but a value of the independent variable x. Daniel Ivan wrote: > Hi, > I have used the SplineFit to interpolate my data points for a curve > y(x) and now > would like to get the interpolated value between my data points. > Is there a easy way to evaluate y(x) by directly inputting the value > of x? > > i.e. > > y = SplineFit["data.dat",Cubic] > > how to get y(x) with x being the value of variable instead of the > order of the data points. > > regards, > >