Tag Info

New answers tagged

3

If you do have version 10, another possibility is to use the new geometric computation functionality: ArcLength@DiscretizeGraphics@BSplineCurve@data1 The above give the total length. To find the length of the segment of the spline function sp between times t1 and t2, you could extend the same approach like so: length[{t1_, t2_}] := ...


1

Something easy to do, not very efficient though. dz = .0000001; arc[z_]:=NIntegrate[Norm[(sp[z + dz] - sp[z])/dz], {z, 0, 34}]


5

Using the somewhat outdates Splines package: Needs["Splines`"] f = SplineFit[{{0, 0}, {2, 0}, {2, 2}, {0, 1}}, Cubic]; ParametricPlot[f[t], {t, 0, 3}] The SplineFunction cannot be differentiated symbolically: f'[0] (* (SplineFunction[Cubic, {0.,3.}, <>]^\[Prime])[0] *) NDSolve can construct a numerical derivative (apparently): {arclength} ...



Top 50 recent answers are included