title: Java Math Sqrt gives NaN
body: <p>I searched on the website and I didn't find a problem like this
  my problem is that in my android application when I do so :</p>
  
  <pre><code>String ET6 = et6.getText().toString();
  String ET7 = et7.getText().toString();
  String ET8 = et8.getText().toString();
  int IET6 = Integer.parseInt(ET6);
  int IET7 = Integer.parseInt(ET7);
  int IET8 = Integer.parseInt(ET8);
  double sqrt1 = (IET7 ^ 2) - 4 *(IET6 * IET8);
  sqrt1 = Math.sqrt(sqrt1);
  </code></pre>
  
  <p>I get a NaN value
  What is wrong with the calculation ?</p>
  
  <p>sqrt = 3^2 - 4*2*1</p>
  
  <p>sqrt = 9 - 8</p>
  
  <p>sqrt = 1</p>
  
  <p>Then the sqrt root should be 1</p>