<br><br><div class="gmail_quote">On Sun, Nov 29, 2009 at 5:58 PM, Esmail <span dir="ltr"><<a href="mailto:ebonak@hotmail.com">ebonak@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="im">Brian J Mingus wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
<br>
I think you answered your own question. 3**2 comes first in the order of operations, followed by the negation.<br>
</blockquote>
<br></div>
No, that's not the problem, I'm ok with the operator precedence of - vs **<br>
<br>
My problem is why I don't get the same result if I use the literal -3 or<br>
a variable that contains -3 (x in my example)</blockquote><div><br>Yes, that is the problem. Setting x=-3 is the same as writing (-3)**2 vs. -(3**2).<br></div></div><br>