title: Powers producing NaN in R
body: <p>R seems to be doing something weird when I am calculating powers. For example if i run the following code </p>
  
  <pre><code>xt &lt;- -0.96 
  betat &lt;- 0.39
  xt^betat
  </code></pre>
  
  <p>then the answer produced is given as NaN. However if it put -0.96^0.39 in to the console, it produced an answer (-0.9842055). The only difference in the first section i have assigned a variable. Is there any way of giving the actual answer rather than the NaN?</p>
  
  <p>The issue lies with negative xt values. </p>
  
  <p>Thank you</p>