Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The problem is that your ais not an algebraic integer (though its norm is 1).
Following on from your code :

sage: a.is_integral()
False
sage: a.minpoly()
x^2 - 3/2*x + 1