PHP 8.3.4 Released!

gmp_binomial

(PHP 7 >= 7.3.0, PHP 8)

gmp_binomialCalculates binomial coefficient

Açıklama

gmp_binomial(GMP|int|string $n, int $k): GMP

Calculates the binomial coefficient C(n, k).

Bağımsız Değişkenler

n

Bir GMP nesnesi, bir tamsayı veya sayısal bir dizge.

k

Dönen Değerler

Returns the binomial coefficient C(n, k).

Hatalar/İstisnalar

Throws ValueError if k is negative. Prior to PHP 8.0.0, E_WARNING was issued instead.

Sürüm Bilgisi

Sürüm: Açıklama
8.0.0 This function no longer returns false on failure.
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top