Top
Back: boolean expressions
Forward: intmat
FastBack: ideal
FastForward: intmat
Up: int
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

4.6.6 boolean operations

and
logical and, may also be written as &&

or
logical or, may also be written as ||

not
logical not, may also be written as !

The precedence of the boolean operations is:

  1. parentheses
  2. comparisons
  3. not
  4. and
  5. or


Example:
 
  (1>2) and 3;
==> 0
  1 > 2 and 3;
==> 0
  ! 0 or 1;
==> 1
  !(0 or 1);
==> 0


Top Back: boolean expressions Forward: intmat FastBack: ideal FastForward: intmat Up: int Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.3.1, 2022, generated by texi2html.