Applications of the Teg differentiable programming language to problems spanning graphics and physical simulation.