- 
                            MathType
- 
                            Wiris Quizzes
- 
                            Learning Lemur
- 
                            CalcMe
- 
                            MathPlayer
- 
                            Store FAQ
- 
                            VPAT for the electronic documentation
- 
                            MathFlow
- 
                            BF FAQ
- 
                            Miscellaneous
- 
                            Wiris Integrations
Diagonal matrix
Reading time: 1minConstructs a diagonal matrix.
Syntax
diagonal_matrix(List | Range | Vector)
diagonal_matrix(Integer, Expression)
Description
Given a list, range or vector L, constructs a diagonal matrix with the elements of L in the diagonal.

Given an integer n and an expression e, constructs a diagonal matrix of dimension n×n with coefficients equal to e.

