![Checking your answers: Are computed values close to the true values?](https://blogs.sas.com/content/iml/files/2012/05/t_dif.png)
In statistical programming, I often test a program by running it on a problem for which I know the correct answer. I often use a single expression to compute the maximum value of the absolute difference between the vectors: maxDiff = max( abs( z-correct ) ); /* largest absolute difference