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

Function BernsteinTrig

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

Source from the content-addressed store, hash-verified

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) *
44 pow(x, i) * pow(y, j) * pow(1 - x - y, n - i - j);
45}
46
47Matrix<double> GetIBernsteinBasis(ngfem::ELEMENT_TYPE etype, int order) {
48 std::map<std::pair<ngfem::ELEMENT_TYPE, int>, Matrix<double>> cache;

Callers 1

GetIBernsteinBasisFunction · 0.70

Calls 1

factorialFunction · 0.85

Tested by

no test coverage detected