1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-29 02:59:58 +02:00

no really, < s

This commit is contained in:
Pomax
2018-06-22 12:01:36 -07:00
parent 2d1c5139e2
commit 15f50ae53f
8 changed files with 8 additions and 8 deletions

View File

@@ -127,7 +127,7 @@ binomial(n,k):
s = lut.length
nextRow = new array(size=s+1)
nextRow[0] = 1
for(i=1, prev=s-1; i<=s; i++):
for(i=1, prev=s-1; i<s; i++):
nextRow[i] = lut[prev][i-1] + lut[prev][i]
nextRow[s] = 1
lut.add(nextRow)

View File

@@ -127,7 +127,7 @@ binomial(n,k):
s = lut.length
nextRow = new array(size=s+1)
nextRow[0] = 1
for(i=1, prev=s-1; i<=s; i++):
for(i=1, prev=s-1; i<s; i++):
nextRow[i] = lut[prev][i-1] + lut[prev][i]
nextRow[s] = 1
lut.add(nextRow)

View File

@@ -127,7 +127,7 @@ binomial(n,k):
s = lut.length
nextRow = new array(size=s+1)
nextRow[0] = 1
for(i=1, prev=s-1; i<=s; i++):
for(i=1, prev=s-1; i<s; i++):
nextRow[i] = lut[prev][i-1] + lut[prev][i]
nextRow[s] = 1
lut.add(nextRow)