php8.5
Home/ Manual/ stats / functions/ stats_stat_binomial_coef

stats_stat_binomial_coef

PHP function Edit on GitHub ✎

(PECL stats >= 1.0.0)

Returns a binomial coefficient

Description

stats_stat_binomial_coef(int $x, int $n): float

Returns the binomial coefficient of n choose x.

Parameters

x

The number of chooses from the set

n

The number of elements in the set

Return Values

Returns the binomial coefficient

Source: reference/stats/functions/stats-stat-binomial-coef.xml · from the official PHP manual (php/doc-en)