For a square matrix with an all-positive diagonal, elements are limited to 6 significant digits by rounding the diagonal and shrinking off diagonal elements toward zero. The off-diagonals are reduced by 3 percent as necessary until the determinant is positive.
matrix with only positive diagonal elements
extra arguments, ignored
Leonid Gibiansky, modified by Tim Bergsma
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.