Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Returns inversion of ``a mod b``. 

src/s/y/sympy-HEAD/sympy/core/tests/test_wester.py   sympy(Download)
def test_C8():
    # Modular multiplicative inverse. Would be nice if divmod could do this.
    assert ZZ.invert(5, 7) == 3
    assert ZZ.invert(5, 6) == 5