eobermuhlner / big-math

Advanced Java BigDecimal math functions (pow, sqrt, log, sin, ...) using arbitrary precision.
MIT License
314 stars 40 forks source link

Feature request: Lambert W function #73

Open melodicore opened 1 month ago

melodicore commented 1 month ago

There doesn't seem to be any Java library that implements the Lambert W function with arbitrary precision numbers, so as a last resort I am requesting for that functionality in BigMath.

As a quick summary, the Lambert W function calculates the inverse of the function f(x)=x*ex.

axkr commented 1 month ago

You Can find a Java implementation in apfloat.org project.

Search for LambertWHelper.java in the Github repo.

Note: in Mathematica the function is called ProductLog.

melodicore commented 1 month ago

You Can find a Java implementation in apfloat.org project.

Thank you! I didn't get to check it properly yet but this seems to be exactly what I'm looking for.