inverse method

GfValue inverse()

Returns the multiplicative inverse of this non-zero element.

Implementation

GfValue inverse() {
  if (isZero) {
    throw RohdHclException(
        'Zero has no multiplicative inverse in a finite field.');
  }
  return pow(field.size - BigInt.two);
}