title: Determinant using sympy
body: <p>The following code generates a 3x3 matrix in terms of x,y,z. I want to generate the determinant of the matrix. But unable to do so.</p>
  
  <pre><code>import numpy as np
  import sympy as sp
  from sympy import *
  from sympy.matrices import Matrix
  x,y,z =sp.symbols('x,y,z')
  H1=np.array([[x,y,z]])
  H2=np.array([[0.0630,0.0314,-0.0001],[0.0314,96.1659,-0.0001],[-0.0001,-0.0001,0.0001]])
  H3=H1.T
  H=H1*H2*H3
  print H
  </code></pre>
  
  <p>To find the determinant of the above matrix, I am using the following command.</p>
  
  <pre><code>H.det()
  </code></pre>
  
  <p>But it is showing error</p>
  
  <pre><code>AttributeError: 'numpy.ndarray' object has no attribute 'det' 
  </code></pre>