IsAlgebraicElement( obj )
returns true if obj is an algebraic element, i.e., an element of an
algebraic extension, that is not in the defining field, and false
otherwise.
gap> IsAlgebraicElement(r);
true
gap> IsAlgebraicElement(3);
false
GAP 3.4.4