So, the R expression and its output is as follows:
> (4-7)^1.3
[1] NaN
Any ideas how to solve this in R?
The answer is a complex number, so you need to give it a complex argument:
> (4-7+0i)^1.3
[1] -2.451751-3.374545i
but remember this is only one root...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With