Top
Back: D.2.3.6 showrecursive
Forward: D.2.3.8 tab
FastBack: D. SINGULAR libraries
FastForward: E. Release Notes
Up: D.2.3 inout_lib
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

D.2.3.7 split

Procedure from library inout.lib (see inout_lib).

Usage:

split(s[,n]); s string, n integer

Return:

same string, split into lines of length n separated by \ (default: n=pagewidth)

Note:

may be used in connection with lprint

Example:

 
LIB "inout.lib";
ring r= 0,(x,y,z),ds;
poly f = (x+y+z)^4;
split(string(f),50);
→ x4+4x3y+6x2y2+4xy3+y4+4x3z+12x2yz+12xy2z+4y3z+6x\
→ 2z2+12xyz2+6y2z2+4xz3+4yz3+z4
split(lprint(f));
→   x4+4x3y+6x2y2+4xy3+y4+4x3z+12x2yz+12xy2z+4y3z+6x2z2+12xyz2+6y2z2+4xz3+4\
   yz3\
→ +z4

Top Back: D.2.3.6 showrecursive Forward: D.2.3.8 tab FastBack: D. SINGULAR libraries FastForward: E. Release Notes Up: D.2.3 inout_lib Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.