MathGroup Archive 2007

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

Search the Archive

Re: Evaluate a spline function



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,

> 

> 




  • Prev by Date: poor efficiency of Numerical Integration at 5.2.0 ?
  • Next by Date: Re: Multi-core Support in Mathematica 5.2
  • Previous by thread: Evaluate a spline function
  • Next by thread: Re: Evaluate a spline function