title: Calculate arc length of piecewise cubic spline?
body: <p>I would like to calculate the arc length of an already-interpolated piecewise cubic spline, where each segment is defined by a normal cubic polynomial ax^3 + bx^2 + cx + d. I am not sure, however, what the best route to take is.</p>
  <p>My first idea is to use numerical integration and the following arc length formula to calculate the arc length for each segment and then sum them up:
  <a href="https://tutorial.math.lamar.edu/classes/calcii/arclength.aspx" rel="nofollow noreferrer">https://tutorial.math.lamar.edu/classes/calcii/arclength.aspx</a></p>
  <p>I am not sure if this is the best approach, as I have minimal experience in numeric integration. If this is the approach to take, which numeric integration method should I use? If not, how can I accomplish this?</p>
  <p>Thanks a lot</p>