Previous Up Next

2.41.5  Jordan bloc : JordanBlock

JordanBlock takes as argument an expression a and an integer n.
JordanBlock returns a square matrix of size n with a on the principal diagonal, 1 above this diagonal and 0 elsewhere.
Input :

JordanBlock(7,3)

Output :

[[7,1,0],[0,7,1],[0,0,7]]

Previous Up Next