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] e = equations[i]
coeffs = e[0] coeffs = e[0]
for c in coeffs: for c in coeffs:
var_index = shape_vars[coeffs[1]] var_index = shape_vars[c[1]]
C[i][var_index] = coeffs[0] C[i][var_index] = c[0]
d[i] = e[1] d[i] = e[1]
s = SLE(C, d) s = SLE(C, d)
r = s.solve() r = s.solve()