Top
Back: printlevel
Forward: timer
FastBack: Control structures
FastForward:
Up: System variables
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

5.3.7 short

Type:
int
Purpose:
the output of monomials is done in the short manner, if short is non-zero. A C-like notion is used, if short is zero. Both notations may be used as input.
The default depends on the names of the ring variables (0 if there are names of variables longer than 1 character, 1 otherwise). Every change of the basering sets short to the previous value for that ring. In other words, the value of the variable short is "ring-local".
If the names are long, or the ring non-commutative, short can not be changed to 1.
Example:
 
  ring r=23,x,dp;
  int save=short;
  short=1;
  2x2,x2;
==> 2x2 x2
  short=0;
  2x2,x2;
==> 2*x^2 x^2
  short=save;  //resets short to the previous value
See int.

Top Back: printlevel Forward: timer FastBack: Control structures FastForward: Up: System variables 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.