38.6 IsAlgebra

IsAlgebra( obj )

returns true if obj, which can be an object of arbitrary type, is a parent algebra or a subalgebra and false otherwise. The function will signal an error if obj is an unbound variable.

    gap> IsAlgebra( FreeAlgebra( GF(2), 0 ) );
    true
    gap> IsAlgebra( 1/2 );
    false 

Previous Up Top Next
Index

GAP 3.4.4
April 1997