MathGroup Archive 2005

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

Search the Archive

RE: splinefit

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58313] RE: [mg58305] splinefit
  • From: "David Annetts" <davidannetts at aapt.net.au>
  • Date: Mon, 27 Jun 2005 03:06:18 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Darrell,

> I am having trouble getting SplineFit to work.  Here is a 
> simplified version of what I'm trying to do
> 
> 
> 
> GET[  "NumericalMath`SplineFit.m`"]
> 
> pts = {{0, 0}, {1, 2}, {2, 2.5}, {3, 2.75}, {4, 2.9}};
> 
> spline = SplineFit[pts, Cubic]
> 
> ParametricPlot[spline[u], {u, 0, 4}, PlotRange -> All, 
> Compiled -> True]
> 
> 
> 
> When I try to run the ParametricPlot, I get an error message 
> stating "spline[u] does not evaluate to a pair of real 
> numbers at u = 1.6666666666666665", etc
> 

You mean either

	Needs[  "NumericalMath`SplineFit`"]

Or
	<<"NumericalMath`SplineFit`.  The second option is synonymous with
Get[].

Regards,

Dave.


  • Prev by Date: Help! Delete Casses based on column
  • Next by Date: Smoothing Splines
  • Previous by thread: splinefit
  • Next by thread: Thanx and another question on plotting