I don't know/haven't used LaTeX yet but I'll do my best to keep it simple,
I'm working on my undergrad senior project and I'm trying to find an inverse function for f(x)=(x-1)! just in the positive reals. I was inspired to ask this question when in one of my probability classes my professor talked about how something like π! existed. Now, obviously, this isn't a 1:1 function so an inverse doesn't exist, but I first restricted the function just to x > 0 and then restricted it further after finding the minimum which is x=1.461632... or the positive root of the digamma function. You can see what I mean on this graph (the green one is what I'm trying to find the inverse of). After restricting the domain to x>1.461632... , the function is 1:1 and an inverse does exist.
This is where I'm stuck at.
I guess what I'm asking is that is there a way to find this inverse? I know that, for example, f^-1(120)=5 and f^-1(3(√π )/4)=2.5 but what of something like f^-1(25) or f^-1(e)? I've seen things like Stirling's Approximation and finding an inverse based off of that but I wanted to see if anybody else has any ideas of what I can do next.
Thank you for your time and let me know if you have any questions about my post.



There is the algorithm by David W. Cantrell as described here. The idea is that we can use
$$g(x) = \sqrt{2\pi}{\left(\frac{x-1/2}{e}\right)^{x-1/2}} - c$$
as an approximation of $\Gamma(x)$. Here $c = \sqrt{2\pi}/e - \Gamma(k)$ where $k$ is the positive zero of the derivative of $\Gamma$. We can invert this function in terms of the Lambert $W$-function. First we set
$$L(x) = \ln\left(\frac{x+c}{\sqrt{2\pi}}\right)$$
and then we get
$$AIG(y) := g^{-1}(y) = \frac{L(x)}{W\left(\frac{L(x)}{e}\right)} + 1/2.$$
As the arguments increase the error gets very small, consider following evaluations:
$$\begin{array}{r|ll} N & AIG((N-1)!) & \text{error} \\ \hline 2 & \hphantom{1}2.02 & \hphantom{-}0.01 \\ 5 & \hphantom{1}4.995 & -0.001 \\ 10 & \hphantom{1}9.998 & -0.0002 \\ 20 & 19.9993 & -0.00004 \\ \end{array}$$