Mathematical and Physical Structures of Rational Functions in Scattering Amplitudes