arclength, an Octave code which estimates the arclength of curves of the form (x,f(x)) or (x(t),y(t)).
We suppose a curve has been drawn, and the length of a segment of that curve is to be estimated. Several cases arise:
The user supplies the limits of the parameter, the function that evaluates the necessary derivatives, and a number n that indicates how the parameter interval x1 ≤ x ≤ x2 or t1 ≤ t ≤ t2 is to be subdivided.
The information on this web page is distributed under the MIT license.
arclength is available in a MATLAB version and an Octave version and a Python version.