Modulo over rational numbers

The calculator performs modulo division over rational dividend and rational divisor.

The calculator performs integer division with remainder. Both the dividend and the divisor can be rational numbers. It displays the integer quotient and the rational remainder (modulo). The calculator outputs an integer quotient and a rational remainder (modulo).

PLANETCALC, Modulo over rational numbers

Modulo over rational numbers

Remainder
 
Quotient
 



Given two rational numbers a=\frac{n_1}{d_1}, b=\frac{n_2}{d_2} find the quotient and the remainder of division a/b:
The quotient can be obtained as:
q = \left\lfloor\frac{{n_1}{d_2}}{{d_1}{n_2}}\right\rfloor
The remainder can be obtained as:
r = \frac{n_1}{d_1} - q \frac{d_2}{n_2}

URL copiado para a área de transferência
PLANETCALC, Modulo over rational numbers

Comentários