zmodn.Zmodn.__truediv__(other)

Divide two Zmodn objects.

Parameters:
other : Zmodn

The Zmodn object to divide by.

Returns:

The result of the division.

Return type:

Zmodn

Raises:
  • TypeError – If other is not a Zmodn object.

  • ValueError – If the modules are not equal or if other is not invertible.