In physics, i should calculate $W(e^{x})$, and $x$ is over $10^5$.
When I calculate it using Wolfram I get number that is less than $x$, but when I try to program it in C++ or python, I get out of range error.
How can I convert this formula, so I don't need to calculate $e^{x}$?
For large $x$, we can approximate $W(x)$ as being
$$W(x) \sim \log x - \log \log x$$
For our case, we have that
$$W(e^x) \approx x - \log x$$