src/Chippyash/Math/Type/Calculator/Native.php
public function rationalDiv(NI $a, NI $b)
    {
        list($a, $b) = $this->checkRationalTypes($a, $b);
        $n = $this->intMul($a->numerator(), $b->denominator());
        $d = $this->intMul($a->denominator(), $b->numerator());

        return RationalTypeFactory::create($n, $d);
    }
public function rationalDiv(NI $a, NI $b)
    {
        list($a, $b) = $this->checkRationalTypes($a, $b);
        $n = $this->intMul($a->numerator(), $b->denominator());
        $d = $this->intMul($a->denominator(), $b->numerator());

        return RationalTypeFactory::create($n, $d);
    }
public function rationalDiv ( NI $ a , NI $ b ) { list ( $ a , $ b ) = $ this -> checkRationalTypes ( $ a , $ b ) ; $ n = $ this -> intMul ( $ a -> numerator ( ) , $ b -> denominator ( ) ) ; $ d = $ this -> intMul ( $ a -> denominator ( ) , $ b -> numerator ( ) ) ; return RationalTypeFactory :: create ( $ n , $ d ) ; }
Rational number division

@param NI $a first operand
@param NI $b second operand

@return RationalType
Rational number division