This is an old revision of the document!


Diagonal

Matrix.Diagonal($\{x_1,x_2,...,x_n\}$) takes a list of $n$ numbers and returns an $n \times n$ diagonal matrix with the $x_i$ as entries.

Example

The day may come on which this documentation page has an example.

Input

Example.Quanty
-- some example code

Result

text produced as output

Table of contents

Print/export