This method is used,  for example,  in the Python-based textbook Computational Physics by Mark Newman \cite{mark2013}
Here is another example: