This question already has an answer here:
I was trying to plot a very simple polynomial function:
Mathematica tells me that in this region, the result is always imaginary, but from fundamental math the result should be real. So why the difference?
To make the question clear: I know how to get the correct plot, but I want to understand why mathematica gives us imaginary result. How did mathematica do the calculation inside the kernal?