Rational calculation functions

to be done: compare to natural integer and modulo for integer and
rational