title: how to evaluate an equation with python
body: <p>I am new to programming and I want to write a python-(2.7) program to evaluate this equation for different values of <code>theta</code>:</p>
  
  <pre><code>    D(theta) = Acos**2(theta)+Bcos(theta)+C       ;
  </code></pre>
  
  <p>'theta' is an angle and there are 500 values arranged in a column.</p>
  
  <p>My current attempt is   </p>
  
  <pre><code>import math
  
  x = float("-60")
  A = 9.5
  B = -1.6
  C = 1.8
  D=A*math.cos**2(x)+B*math.sin(x)+C
  print 
  </code></pre>