Hi, I was wondering the following:
Since arc length is usually defined for curves with a defined derivative, then, what would your code do with functions that have no derivative?
In particular, there are some functions that are continuous over the real line, but that are not differentiable at any point. Weierstrass function is an example of this:
https://mathworld.wolfram.com/WeierstrassFunction.html
I have tried your code, and Sander's code with this function, I am attaching the notebook below.
In short: Your code does, sometimes, plot something for this function, but I get a lot or Message errors about problems with the derivative. Of course, that makes sense given the properties of this function.
I also tried your code using the absolute value, that has a sharp corner, and with a steep step function.
It has been very fun, nice work!
Attachments: