Top
Back: 4.9.1 matrix declarations
Forward: 4.9.3 matrix type cast
FastBack: 4. Data types
FastForward: 5. Functions and system variables
Up: 4.9 matrix
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

4.9.2 matrix expressions

A matrix expression is:

  1. an identifier of type matrix
  2. a function returning matrix
  3. matrix expressions combined by the arithmetic operations +, - or *
  4. a type cast to matrix (see matrix type cast)

Example:

 
  ring r=0,(x,y),dp;
  poly f= x3y2 + 2x2y2 +2;
  matrix H = jacob(jacob(f));    // the Hessian of f
  matrix mc = coef(f,y);
  print(mc);
→ y2,    1,
→ x3+2x2,2 
  module MD = [x+y,1,x],[x+y,0,y];
  matrix M = MD;
  print(M);
→ x+y,x+y,
→ 1,  0,  
→ x,  y   

Top Back: 4.9.1 matrix declarations Forward: 4.9.3 matrix type cast FastBack: 4. Data types FastForward: 5. Functions and system variables Up: 4.9 matrix 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.