Math domain error in python when using log
<p>Here is what I am writing:</p>

<pre><code>&gt;&gt;&gt; import math
&gt;&gt;&gt; 2/3*math.log(2/3,2)
</code></pre>

<p>Here is the error I'm getting:</p>

<pre><code>Traceback (most recent call last):
File "&lt;stdin&gt;", line 1, in &lt;module&gt;
ValueError: math domain error
</code></pre>

<p>Can someone please explain what I'm doing wrong?
Thanks.</p>