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

Function Binomial

python/webgui.py:363–363  ·  view source on GitHub ↗
(n,i)

Source from the content-addressed store, hash-verified

361
362 # transform point-values to Bernsteinbasis
363 def Binomial(n,i): return math.factorial(n) / math.factorial(i) / math.factorial(n-i)
364 def Bernstein(x, i, n): return Binomial(n,i) * x**i*(1-x)**(n-i)
365 Bvals = ngs.Matrix(og+1,og+1)
366 for i in range(og+1):

Callers 1

BernsteinFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected