Given a function (e.g. $f(x) = \sin(x)$) and an arc length value, I want to calculate the corresponding $x$-value to calculate the coordinates of the point, which is located on the function with the specific arc length.

Is there a possibility to do that with any function or can I just do this for specific functions?

Since the goal is to create a script/program which does this for me, a numeric solution would be good enough.

Thanks for you help!