answered 10 years ago
The problem is that your ais not an algebraic integer (though its norm is 1). Following on from your code :
a
sage: a.is_integral() False sage: a.minpoly() x^2 - 3/2*x + 1