Top
Back: primefactors
Forward: printf
FastBack: Functions and system variables
FastForward: Control structures
Up: Functions
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

5.1.109 print

Syntax:
print ( expression )
print ( expression, "betti" )
print ( expression, format_string )
Type:
string
Purpose:
The first form prints the expression.
The second form prints the graded Betti numbers from a matrix. The Betti numbers are printed in a matrix-like format where the entry is the minimal number of generators in degree syzygy module of
The last form returns the printed output as a string depending on the format string iwhich determines the format to use to generate the string.

The following format strings are supported:

"%s"
returns string( expression ),
"%2s"
similar to "%s", except that newlines are inserted after every comma and at the end,
"%l"
similar to "%s", except that each object is embraced by its type such that it can be directly used for "cutting and pasting",
"%2l"
similar to "%l", except that newlines are inserted after every comma and at the end,
"%;"
returns the string equivalent to typing expression;
"%t"
returns the string equivalent to typing type expression;
"%p"
returns the string equivalent to typing print(expression);
"%b"
returns the string equivalent to typing print(expression, "betti");
"betti"
is not a format string.
Example:
 
See Type conversion and casting; betti; dbprint; fprintf; printf; short; sprintf; string type cast; type.


Top Back: primefactors Forward: printf FastBack: Functions and system variables FastForward: Control structures Up: Functions Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-6, Dec 2012, generated by texi2html.