Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ignoring the very small imaginary part

I am generating a matrix that its entries come from roots of a polynomial which are all real. Due to calculation errors sage returns entries such as: -2.8 + 2.2e-16*I

How can I ask sage to ignore the small imaginary part and return -2.8?