MathGroup Archive 2007

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

Search the Archive

Re: Problem wit cubic spline

  • To: mathgroup at smc.vnet.net
  • Subject: [mg75029] Re: [mg74994] Problem wit cubic spline
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sat, 14 Apr 2007 01:15:25 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

Works here.

$Version

5.2 for Mac OS X (June 20, 2005)

<<NumericalMath`SplineFit`

pts = {{0,0},{1,2},{-1,3},{0,1},{3,0}}; 

spline = SplineFit[pts, Cubic]

"SplineFunction["Cubic", "{0., 4.}", <>]"

spline[1.4]

{0.265143,2.70171}

ParametricPlot[spline[u],{u,0,4},
    Epilog->{Red, AbsolutePointSize[4],Point/@pts}];


Bob Hanlon

---- anguzman at ing.uchile.cl wrote: 
> Hello:
>   I'm using Mathematica 5 and I'm having some problems with SplineFit
> I run :
> <<NumericalMath`SplineFit`
> 
> pts = {{0,0},{1,2},{-1,3},{0,1},{3,0}};
> 
> 
> spline = SplineFit[pts, Cubic]
> 
> 
> SplineFit[{{0,0},{1,2},{-1,3},{0,1},{3,0}},Cubic]
> 
> That is, it didn't recognize the last command...The graphic doesn't  
> work either.
> With Bezier (or CompositeBezier) there is no problem.
> 
> spline = SplineFit[pts, Bezier]
> 
> SplineFunction[\[InvisibleSpace]Bezier\[InvisibleSpace], \[InvisibleSpace]{0.,
>       4.}\[InvisibleSpace], <>]
> 
> And Graphics works fine....
> I tried to run the commands directly from the Help Browser and it  
> didn't work..
> 
> Does anybody has the same problem?
>   Thanks in advance
> 
> Atte. Andres Guzman
> 
> 
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> 
> 



  • Prev by Date: Re: Problem wit cubic spline
  • Next by Date: Re: Strange results from Mathematica
  • Previous by thread: Re: Problem wit cubic spline
  • Next by thread: Units of MaxBend?