exmath v0.2.0 Exmath

Summary

Functions

Get the average growth-factor between two points

Calculates the n-th bell number

Factorial will multiply n with n-1 until n <= 1

Hypergeometric distribution without replacement

Combinations formula A formula for the number of possible combinations of r elements from a set of n elements Notation: ( n r )

Permutations formula A formula for the number of possible permutations of r elements from a set of n elements

Prints row r of pascals triangle Calculated using the previously implemented nCr formula

Computes the stirling number of the second kind

Functions

acos(x)

See :math.acos/1.

acosh(x)

See :math.acosh/1.

asin(x)

See :math.asin/1.

asinh(x)

See :math.asinh/1.

atan(x)

See :math.atan/1.

atan2(x, y)

See :math.atan2/2.

atanh(x)

See :math.atanh/1.

average_growth(p1, p2)

Get the average growth-factor between two points

bell_number(n)

Calculates the n-th bell number

cos(x)

See :math.cos/1.

cosh(x)

See :math.cosh/1.

exp(x)

See :math.exp/1.

factorial(n)

Factorial will multiply n with n-1 until n <= 1

hypergeometric_distribution(k, nn, kk, n)

Hypergeometric distribution without replacement

Parameters

  • k -> target employed
  • nn -> total pool
  • kk -> target total
  • n -> total employed, amount to take
log(x)

See :math.log/1.

log10(x)

See :math.log10/1.

log2(x)

See :math.log2/1.

nCr(n, r)

Combinations formula A formula for the number of possible combinations of r elements from a set of n elements Notation: ( n r )

nPr(n, r)

Permutations formula A formula for the number of possible permutations of r elements from a set of n elements

pascals_triangle_row(r)

Prints row r of pascals triangle Calculated using the previously implemented nCr formula

pow(x, y)

See :math.pow/2.

sin(x)

See :math.sin/1.

sinh(x)

See :math.sinh/1.

sqrt(x)

See :math.sqrt/1.

stirlings2(n, n)

Computes the stirling number of the second kind

tan(x)

See :math.tan/1.

tanh(x)

See :math.tanh/1.