Is it possible to make the ProductLog(x) function

I wanted to make the W0(x) function for an advanced calculator project I’m making but I am unable to figure it out how

Here’s what I found on Wikipedia:

Whats that o(1) function?

It means that for all x > some x₀, the remaining terms are less than 1. So, for large values of x, W₀(x) to the nearest integer is ln x - ln ln x. See Wikipedia.