Below are some Mathematica files with numerical simulations of the inverting top and related physical systems. The code was written by Christoph Lätt as part of his bachelor thesis in 2016. His thesis (in german) contains further explanations.