Determinant of a Diagonal Matrix
## Formula
For:
$$A=\begin{bmatrix}a_1&0&\cdots&0\\0&a_2&\cdots&0\\\vdots&\vdots&\ddots&\vdots\\0&0&\cdots&a_n\end{bmatrix}$$
the determinant is:
$$|A|=a_1a_2\cdots a_n$$
## Usage
- Used to calculate determinants of diagonal matrices directly.