Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Evaluate a spline function

  • To: mathgroup at
  • Subject: [mg74090] Re: Evaluate a spline function
  • From: dh <dh at>
  • Date: Fri, 9 Mar 2007 02:04:53 -0500 (EST)
  • References: <esola2$ef5$>

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.


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