logic error

This commit is contained in:
Josh Holtrop 2011-03-29 14:16:32 -04:00
parent da9296bc76
commit cd2954a1b8

View File

@ -34,8 +34,8 @@ class Sketch(object):
e = equations[i]
coeffs = e[0]
for c in coeffs:
var_index = shape_vars[coeffs[1]]
C[i][var_index] = coeffs[0]
var_index = shape_vars[c[1]]
C[i][var_index] = c[0]
d[i] = e[1]
s = SLE(C, d)
r = s.solve()