MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / factorial

Function factorial

comp/webgui.cpp:32–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32double factorial(int n) { return std::tgamma(n + 1); }
33
34double Binomial(int n, int i) {
35 return factorial(n) / (factorial(i) * factorial(n - i));

Callers 2

BinomialFunction · 0.85
BernsteinTrigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected