Top
Back: 3.9.6.1 mdouble
Forward: 3.9.6.3 msum
FastBack: 3. General concepts
FastForward: 4. Data types
Up: 3.9.6 template_lib
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

3.9.6.2 mtripple

Procedure from library template.lib (see template_lib).

Usage:

mtripple(i); i int

Return:

int: $i+i+i$

Note:

Help is in pure Texinfo
This help string is written in texinfo, which enables you to use, among others, the @math command for mathematical typesetting (like

$\alpha, \beta$ ).
It also gives more control over the layout, but is, admittingly, more cumbersome to write.

See also: Typesetting of help strings; mdouble; msum.

Example:

 
LIB "template.lib";
mtripple(0);
→ 0
mtripple(-1);
→ -3

Top Back: 3.9.6.1 mdouble Forward: 3.9.6.3 msum FastBack: 3. General concepts FastForward: 4. Data types Up: 3.9.6 template_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.