title: How to integrate Sympy and Numpy in python? Numpy array of sympy symbols
body: <p>Lets say I want an array vector like this one [x , 2x] and then I want to compute this array when x=5. So the result become [5 , 10].</p>
  
  <p>This can be easily done in matlab using symbolic toolbox. However, I just moved from matlab to python and I was recommended to use Numpy and Sympy to replace Matlab powerful matrix manipulations.</p>
  
  <p>I tried the following code</p>
  
  <pre><code>import numpy as np
  import sympy as sp
  
  x=sp.symbols('x')
  a=np.array([x , 2*x])
  </code></pre>
  
  <p>However, I could not find any command that can be used to evaluate "a" when x is any number.</p>
  
  <p>Can someone direct me to the correct path please.</p>