DarkoVeberic / LambertW

C++ implementation of the Lambert W(x) function
BSD 2-Clause "Simplified" License
29 stars 10 forks source link

Feature request: header-only library version #5

Open silkskier opened 1 year ago

silkskier commented 1 year ago

As in the title. The library is a perfect candidate for a header-only version, it is quick to compile (200-600 ms on my PC depending on the compiler settings), the compiled executable is extremely small (barely over 20 kB), and it has no external dependencies outside of C++ standard library.

It can be easily converted into a single header by removing 'using namespace std' and joining the files together. Below I've attached an example of header-only implementation, which I'm using in my project.

Thanks for publishing the library btw. It was surprisingly hard to find a reasonable C/C++ Lambert's W function implementation on GitHub. LambertW.hpp.txt