I'm studying an article where there are two functions:
$e(x) = (e_0/8)\cdot[(2x^3 + x)\sqrt{(1 + x^2)} − \sinh^{−1}(x)]$
$p(x) = (e_0/24)\cdot[(2x^3 - 3x)\sqrt{(1 + x^2)} + 3\sinh^{−1}(x)]$
The article ask me to find numerically $e(p)$ starting from these two expressions. The article suggests me to use a "root-finding routine" but I have no idea how to implement the code. Can someone please help me? I need, possibly, a more general numerical algorithm. (I'm writing in Python). I tried with pynverse
library but it is not sufficiently accurate.