| 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
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.