monte-language / typhon

A virtual machine for Monte.
Other
67 stars 10 forks source link

Double: Add log-gamma and Lambert's W #223

Open MostAwesomeDude opened 3 years ago

MostAwesomeDude commented 3 years ago

The logarithm of the gamma function, often called "log-gamma", would allow us to move nearly all of the statistics methods from RPython to pure Monte.

For completeness, if we're going to undertake such a project, we also should add Lambert's W function, which is analogous to the natural logarithm, but for x * x.exponential() instead of x.exponential().