Facing a simple, yet frustrating formula like this and the task to solve it for x left me googling around for hours until I found salvation in Wolfram Alpha, Wikipedia, and a nice blog post with R-syntax to solve a similar equation. Using the results from Wolfram Alpha I was able to find the solution with the ‘gsl’