2.79 equ? implementation for rational