Home Online Manual
Back: matrix declarations
Forward: matrix type cast
FastBack: map
FastForward: module
Up: matrix
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

4.12.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)


  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);
==> y2,    1,
==> x3+2x2,2 
  module MD = [x+y,1,x],[x+y,0,y];
  matrix M = MD;
==> x+y,x+y,
==> 1,  0,  
==> x,  y