fractions function

Rational Approximation