You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Incorrect values for modInverse function
To Reproduce
Steps to reproduce the behavior:
@Test
fun testModInverse() {
val a = BigInteger.parseString("54647")
.modInverse(BigInteger.parseString("1157920"))
assertEquals(
BigInteger.parseString("1141223"),
a
)
Expected :1141223
Actual :-16697
Expected behavior
In java.math this test is successful:
@Test
public void testModInverse() {
BigInteger a = new BigInteger("54647")
.modInverse(new BigInteger("1157920"));
assertEquals(new BigInteger("1141223"), a);
}
The text was updated successfully, but these errors were encountered:
Describe the bug
Incorrect values for modInverse function
To Reproduce
Steps to reproduce the behavior:
Expected behavior
In java.math this test is successful:
The text was updated successfully, but these errors were encountered: