14.4 IsGaussInt

IsGaussInt( obj )

IsGaussInt returns true if obj, which may be an object of arbitrary type, is a Gaussian integer, and false otherwise. Will signal an error if obj is an unbound variable.

    gap> IsGaussInt( 1 );
    true
    gap> IsGaussInt( E(4) );
    true
    gap> IsGaussInt( 1/2 + 1/2*E(4) );
    false
    gap> IsGaussInt( E(6) );
    false 

IsGaussRat can be used to test whether an object is a Gaussian rational (see IsGaussRat).

Previous Up Top Next
Index

GAP 3.4.4
April 1997