title: Combining numpy with sympy
body: <p>I have a the following code:</p>
  
  <pre><code>p = classp();
  for i in range(1,10):
     x = numpy.array([[2],[4],[5]])
     print p.update(x)
  
  class classp:
     def __init__(self):
         self.mymodel = array([2*x[1]], [3*x[0]], [x[2]]);
     def update(self, x):
         return self.mymodel #replace x(0)...x(1) with the given parameter
  </code></pre>
  
  <p>My question is related the code above, I would like to define a model using sympy if it's possible, afterwards in the update function replace the sympy variables with the x values. Is it possible? How can I do that?</p>