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

Function BernsteinTrig

python/webgui.py:441–443  ·  view source on GitHub ↗
(x, y, i, j, n)

Source from the content-addressed store, hash-verified

439 iBvals_trig = bezier_trig_trafos[og]
440 else:
441 def BernsteinTrig(x, y, i, j, n):
442 return math.factorial(n)/math.factorial(i)/math.factorial(j)/math.factorial(n-i-j) \
443 * x**i*y**j*(1-x-y)**(n-i-j)
444 Bvals = ngs.Matrix(ndtrig, ndtrig)
445 ii = 0
446 for ix in range(og+1):

Callers 1

BuildRenderDataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected