Mathematical Functions and Constants

Binomial and Factorial

The binomial coefficients, (n,m), and the factorial, n!, are available inside namespace Vincia as:


The dilogarithm, Li2(x), is available inside namespace Vincia as:

The Gamma Function

The Gamma function, Gamma(x) is implemented for x > 0, and is based on the approximation by Lanczos (see Numerical Recipes). Two function calls are availabe inside namespace Vincia: The former is often more useful in calculations involving ratios of the Gamma function with large numbers, which would be cast as differences of logs.

Numerical Integration and Root Finding

One-dimensional Splines