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

Function Bernstein

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

Source from the content-addressed store, hash-verified

36}
37
38double Bernstein(double x, int i, int n) {
39 return Binomial(n, i) * pow(x, i) * pow(1 - x, n - i);
40}
41
42double BernsteinTrig(double x, double y, int i, int j, int n) {
43 return factorial(n) / factorial(i) / factorial(j) / factorial(n - i - j) *

Callers 1

GetIBernsteinBasisFunction · 0.70

Calls 1

BinomialFunction · 0.70

Tested by

no test coverage detected