bwp_omega

A fast implementation of the Wright omega function.

It is based on the approximation described in

S. D'Angelo, L. Gabrielli, and L. Turchet, "Fast Approximation of the Lambert W Function for Virtual Analog Modelling", Proc. 22nd Intl. Conf. Digital AUdio Effects (DAFx-19), Birmingham, UK, September 2019.

API

Module type: Utility

bwp_omegaf()

static inline float bwp_omegaf(
	float x);

Returns an approximation of Wright omega of x.

x must be finite.

Absolute error < 0.045.

bwp_omegaf_better()

static inline float bwp_omegaf_better(
	float x);

Returns a better approximation of Wright omega of x.

x must be finite.

Absolute error < 0.001.

Changelog

  • Version 1.1.0:
    • Added bwp_omegaf_better().
    • Fixed typo in the documentation of bwp_omegaf().
    • Updated dependencies.
  • Version 1.0.0:
    • First release.