function rec(a) {
        if (a.length === 1)
          return new Fraction(a[0]);
        return rec(a.slice(1))['inverse']()['add'](a[0]);
      }
Check if two rational numbers are the same

Ex: new Fraction(19.6).equals([98, 5]);