I have only used matlab once before (in the past week). I don't know if this works for only integers but have you tried the "nthroot" function?
I found matlab gave an imaginary solution to a cube root as well rather than the real root, strangely.
Hi,
I am trying to figure out what is. I calculated it, possibly incorrectly as by . I would calculate then square that to get
All the maths applications I have calculate it as -1.0400 + 1.8014i. Which is . This complex fraction is courtesy of my HP.
My questions are twofold. Why if cube roots are defined for all values on the number line do the calculators, and matlab produce an answer with an imaginary part? I thought that all even rational exponents produce positive real results, and not imaginary results?
If the imaginary result above is correct, and I can trust the calculator, how on earth did it get to that complex fraction?
Thanks
Regards
Craig.