Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg104831] Re: How to Calculatelength of an Spline curve between two points?
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Wed, 11 Nov 2009 04:27:28 -0500 (EST)
  • References: <hdbhcp$jj4$1@smc.vnet.net>

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?