Fix examples
authorVivien Maisonneuve <v.maisonneuve@gmail.com>
Wed, 2 Jul 2014 21:25:30 +0000 (23:25 +0200)
committerVivien Maisonneuve <v.maisonneuve@gmail.com>
Wed, 2 Jul 2014 21:25:30 +0000 (23:25 +0200)
examples/nsad2010.py
examples/squares.py

index 14c984c..e2cacc7 100755 (executable)
@@ -9,7 +9,6 @@ def affine_derivative_closure(T, x0s):
     k = Symbol('k')
 
     for x in T.symbols:
     k = Symbol('k')
 
     for x in T.symbols:
-        x = Symbol(x)
         assert x in x0s + xs
     for dx in dxs:
         assert dx.name not in T.symbols
         assert x in x0s + xs
     for dx in dxs:
         assert dx.name not in T.symbols
index d606631..6bc352a 100755 (executable)
@@ -64,4 +64,4 @@ print('sq6:', sq6)
 print('sq6 simplified:', sq6.sample())
 print()
 #print(u.drop_dims(' '))
 print('sq6 simplified:', sq6.sample())
 print()
 #print(u.drop_dims(' '))
-print('sq7 with out constraints involving y and a', sq7.drop_dims('y a')) #drops dims that are passed
+print('sq7 with out constraints involving y and a', sq7.project_out([y, a])) #drops dims that are passed