Keen also has a UI tool that allows him to model nonlinear dynamics (video, kickstarter project).
Math, Code