How can i use e and power operation in python 2.7
<p>How can i write <code>x.append(1-e^(-value1^2/2*value2^2))</code> in python 2.7?</p>

<p>I don't know how to use power operator and e.</p>

<p>Power is <code>**</code> and <code>e^</code> is <code>math.exp</code>:</p>

<pre><code>x.append(1 - math.exp(-0.5 * (value1*value2)**2))
</code></pre>

python math equation exp