Top
Back: 5.1.126 syz
Forward: 5.1.128 transpose
FastBack: 5. Functions and system variables
FastForward: 6. Tricks and pitfalls
Up: 5.1 Functions
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

5.1.127 trace

Syntax:

trace ( intmat_expression )
trace ( matrix_expression )

Type:

int, if the argument is an intmat, resp.
poly, if the argument is a matrix

Purpose:

returns the trace of an intmat, resp. matrix.

Example:
 
  intmat m[2][2]=1,2,3,4;
  print(m);
→      1     2
→      3     4
  trace(m);
→ 5

See intmat; matrix.


Top Back: 5.1.126 syz Forward: 5.1.128 transpose FastBack: 5. Functions and system variables FastForward: 6. Tricks and pitfalls Up: 5.1 Functions 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.