MathGroup Archive 2009

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

Search the Archive

Re: How to Calculatelength of an Spline curve between two points?


Assuming you want the distance between points at x1 and x2 *along the
spline* my brute force approach would be something like:

dx = 0.001;
Sum[EuclideanDistance[{x, sp[x]}, {x + dx, sp[x + dx]}], {x, x1,x2,
dx}]

Cheers -- Sjoerd

On Nov 10, 1:04 pm, alfaeco <alfa... at gmail.com> wrote:
> I need some help.
>
> Given an Interpolating function with method-> Spline.
>
> sp = Interpolation[tbl, Method -> "Spline"];
>
> How can I calculate the distance between two arbitrary points of the
> splines?



  • Prev by Date: Solving Weissinger's ODE
  • Next by Date: Line Wrapping Problems, Slow Delete All Output
  • Previous by thread: Re: Re: How to Calculatelength of an Spline
  • Next by thread: Re: How to Calculatelength of an Spline curve between two points?