Functions

object Functions

Functions

Link copied to clipboard
fun binomial(n: Int, k: Int): Int

Returns the binomial coefficient of n choose k.

Link copied to clipboard

Computes the logarithm of x with base defined by the entropy type.

Link copied to clipboard
fun erf(x: Double, approx: Boolean): Double

Returns the error function of x using either the Abramowitz and Stegun approximation or the Taylor series approximation.

Link copied to clipboard

Returns the error function of x using the Abramowitz and Stegun approximation with 6 terms.

Link copied to clipboard
fun erfc(x: Double, approx: Boolean): Double

Returns the complementary error function of x using either the Abramowitz and Stegun approximation or the Taylor series approximation.

Link copied to clipboard
Link copied to clipboard
fun factorial(n: Int): Int

Returns the factorial of n.