MCPcopy Create free account
hub / github.com/ActiveState/code / P

Function P

recipes/Python/576871_Spline_demonstrator/recipe-576871.py:46–54  ·  view source on GitHub ↗
(t,knot,Ncycle)

Source from the content-addressed store, hash-verified

44 return Nopen(0,m,z,knot)
45
46def P(t,knot,Ncycle):
47 L = len(points)
48 SumX = 0.0
49 SumY = 0.0
50 for k in range(L):
51 n = Ncycle(k,m,t,knot)
52 SumX = SumX + n * points[k][0]
53 SumY = SumY + n * points[k][1]
54 return [SumX,SumY]
55
56def plot():
57 global m

Callers 3

plotFunction · 0.70
SpaceoutFunction · 0.70
recipe-577333.pyFile · 0.50

Calls 1

rangeFunction · 0.85

Tested by

no test coverage detected