chg: allow chinrem/farey for rational functions