BinaryPolynomial.fromLogicValue constructor

BinaryPolynomial.fromLogicValue(
  1. LogicValue value
)

Creates a binary polynomial from a two-state value.

The width of value is not retained because leading zero coefficients are not mathematically significant. The value must not contain x or z.

Implementation

factory BinaryPolynomial.fromLogicValue(LogicValue value) =>
    BinaryPolynomial(parseBinaryMathLogicValue(value).value);