coefficient method
- int exponent
Returns the coefficient of x^[exponent].
Implementation
bool coefficient(int exponent) {
if (exponent < 0) {
throw RohdHclException(
'Binary polynomial exponents must be non-negative.');
}
return ((coefficients >> exponent) & BigInt.one) == BigInt.one;
}