jordan_block INDEX

JORDAN_BLOCK _ _ _ _ _ _ _ _ _ _ _ _ operator

syntax:

jordan_block(<expr>,<square\_size>)

<expr> :- an algebraic expression or symbol.

<square\_size> :- a positive integer.

jordan_blockcomputes the square jordan block matrix J of dimension <square\_size>.

The entries of J are:

J(i,i) = <expr> for i=1 ... n, J(i,i+1) = 1 for i=1 ... n-1, and all other entries are 0.

examples:



jordan_block(x,5); 

  [x  1  0  0  0]
  [             ]
  [0  x  1  0  0]
  [             ]
  [0  0  x  1  0]
  [             ]
  [0  0  0  x  1]
  [             ]
  [0  0  0  0  x]

Related functions: diagonal, companion.