Sprott's algorithm for calculating largest Lyapunov exponent by Brenda McCaffrey http://sprott.physics.wisc.edu/chaos/lyapexp.htm