MCPcopy Create free account
hub / github.com/abess-team/abess / binom

Function binom

python/include/unsupported/test/matrix_exponential.cpp:12–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include "matrix_functions.h"
11
12double binom(int n, int k)
13{
14 double res = 1;
15 for (int i=0; i<k; i++)
16 res = res * (n-k+i+1) / (i+1);
17 return res;
18}
19
20template <typename T>
21T expfn(T x, int)

Callers 1

testPascalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected