title: Is there anyway to compute a negative base to the power of a non integer exponent in Java?
body: <p>According to my own experience and to the Java documentation, in Math.pow(i,j), whenever i is a negative number and j is a non integer, Math.pow will always return NaN, however, according to all of the different calculators I have tried, there are some situations where there is a real solution to a negative base to the power a non integer exponent. </p>
  
  <p>For example: </p>
  
  <pre><code>System.out.println(Math.pow(-3, 0.6));
  </code></pre>
  
  <p>returns NaN</p>
  
  <p>Are there any work arounds to this? </p>
  
  <p>Thanks in advance.  </p>