14.3 IsGaussRat

IsGaussRat( obj )

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

    gap> IsGaussRat( 1/2 );
    true
    gap> IsGaussRat( E(4) );
    true
    gap> IsGaussRat( E(6) );
    false
    gap> IsGaussRat( true );
    false 

IsGaussInt can be used to test whether an object is a Gaussian integer (see IsGaussInt).

Previous Up Top Next
Index

GAP 3.4.4
April 1997