Skip to content

komm.BinaryPolynomialFraction

Binary polynomial fraction. A binary polynomial fraction is a ratio of two binary polynomials.

Attributes:

  • numerator (BinaryPolynomial)

    The numerator of the fraction.

  • denominator (BinaryPolynomial)

    The denominator of the fraction.

Examples:

>>> komm.BinaryPolynomialFraction(0b11010, 0b101)  # (X^4 + X^3 + X) / (X^2 + 1)
BinaryPolynomialFraction(0b11010, 0b101)

Algebraic structure

The binary polynomial fractions form a field. The following operations are supported: addition (+), subtraction (-), multiplication (*), division (/), and exponentiation (**).