If your use of matlab gives one answer and your manual labor gives another, don't be too quick to assume that matlab iis at fault.
That being said, getting the real part of a number is very easy, I can't try it but with the symbolic toolbox I believe you can just do:
real(y)