The simulation is written in Python by using numpy and matplotlib. You can find the code in the GitHub linked in the description, under the folder "Inverse Kinematics" -> "Programs" -> "Python". Its the "ikm_simulator_v1.py" script. Happy experimenting!