Source: http://personal.ee.surrey.ac.uk/Personal/S.Gourley/double_int.pdf