Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
32
double factorial(int n) { return std::tgamma(n + 1); }
33
34
double Binomial(int n, int i) {
35
return factorial(n) / (factorial(i) * factorial(n - i));
Callers
2
Binomial
Function · 0.85
BernsteinTrig
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected