Lyapunov algorithm program