/** * Divides <i>this</i> by <i>b</i> and stores the quotient in a new * PolynomialGF2n. * * @param b the divisor * @return the quotient <i>this</i> / <i>b</i> */ public final GF2nPolynomial quotient(GF2nPolynomial b) throws RuntimeException, ArithmeticException { GF2nPolynomial[] result = new GF2nPolynomial[2]; result = divide(b); return result[0]; }
/** * Divides <i>this</i> by <i>b</i> and stores the remainder in a new * PolynomialGF2n. * * @param b the divisor * @return the remainder <i>this</i> % <i>b</i> */ public final GF2nPolynomial remainder(GF2nPolynomial b) throws RuntimeException, ArithmeticException { GF2nPolynomial[] result = new GF2nPolynomial[2]; result = divide(b); return result[1]; }
/** * Divides <i>this</i> by <i>b</i> and stores the quotient in a new * PolynomialGF2n. * * @param b the divisor * @return the quotient <i>this</i> / <i>b</i> * @throws DifferentFieldsException if <tt>this</tt> and <tt>b</tt> are not defined over * the same field. */ public final GF2nPolynomial quotient(GF2nPolynomial b) throws RuntimeException, ArithmeticException { GF2nPolynomial[] result = new GF2nPolynomial[2]; result = divide(b); return result[0]; }
/** * Divides <i>this</i> by <i>b</i> and stores the remainder in a new * PolynomialGF2n. * * @param b the divisor * @return the remainder <i>this</i> % <i>b</i> * @throws DifferentFieldsException if <tt>this</tt> and <tt>b</tt> are not defined over * the same field. */ public final GF2nPolynomial remainder(GF2nPolynomial b) throws RuntimeException, ArithmeticException { GF2nPolynomial[] result = new GF2nPolynomial[2]; result = divide(b); return result[1]; }