Home Online Manual
Top
Back: isNC
Forward: isWeyl
FastBack:
FastForward:
Up: nctools_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document
7.5.20.0. isCommutative
Procedure from library nctools.lib (see nctools_lib).

Usage:
isCommutative();

Return:
int, 1 if basering is commutative, or 0 otherwise

Purpose:
check whether basering is commutative

Example:
 
LIB "nctools.lib";
ring r = 0,(x,y),dp;
isCommutative();
==> 1
def D = Weyl(); setring D;
isCommutative();
==> 0
setring r;
def R = nc_algebra(1,0); setring R;
isCommutative();
==> 1