Java.Math.BigInteger.ModInverse Method
Returns a BigInteger whose value is 1/this mod m.

Syntax

[Android.Runtime.Register("modInverse", "(Ljava/math/BigInteger;)Ljava/math/BigInteger;", "GetModInverse_Ljava_math_BigInteger_Handler")]
public virtual BigInteger ModInverse (BigInteger m)

Parameters

m
the modulus.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif m == null
Java.Lang.ArithmeticExceptionif m if this is not relatively prime to m

Remarks

Returns a BigInteger whose value is 1/this mod m. The modulus m must be positive. The result is guaranteed to be in the interval [0, m) (0 inclusive, m exclusive). If this is not relatively prime to m, then an exception is thrown.

[Android Documentation]

Requirements

Namespace: Java.Math
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1