# cholesky: Cholesky Decomposition

Exercise template for computing the Cholesky decomposition of a simple randomly-generated 3x3 or 4x4 matrix (by hand).

Name:
cholesky
Description:
Computing the Cholesky decomposition of a randomly-generated symmetric positive-definite matrix (3x3 or 4x4) whose Cholesky factor has only integer elements between -5 and 5. The exercise can be solved by computing the Cholesky decomposition and then checking five corresponding multiple-choice items, generated randomly with matrix_to_mchoice().
Solution feedback:
Yes
Randomization:
Random numbers and text blocks
Mathematical notation:
Yes
Verbatim R input/output:
No
Images:
No
Other supplements:
No
Raw: (1 random version)
PDF:
HTML:

(Note that the HTML output contains mathematical equations in MathML, rendered by MathJax using ‘mathjax = TRUE’. Instead it is also possible to use ‘converter = “pandoc-mathjax”’ so that LaTeX equations are rendered by MathJax directly.)

Demo code:

library("exams")

set.seed(403)
exams2html("cholesky.Rmd", mathjax = TRUE)
set.seed(403)
exams2pdf("cholesky.Rmd")

set.seed(403)
exams2html("cholesky.Rnw", mathjax = TRUE)
set.seed(403)
exams2pdf("cholesky.Rnw")