parameters: (u, v)
return_statement: return u1
docstring: inverse(u:long, u:long):long
      Return the inverse of u mod v.
docstring_summary: inverse(u:long, u:long):long
      Return the inverse of u mod v.
docstring_tokens: inverse ( u : long u : long ) : long Return the inverse of u mod v .
function: def inverse(u, v):
      """inverse(u:long, u:long):long
      Return the inverse of u mod v.
      """
      u3, v3 = long(u), long(v)
      u1, v1 = 1L, 0L
      while v3 > 0:
          q=u3 / v3
          u1, v1 = v1, u1 - v1*q
          u3, v3 = v3, u3 - v3*q
      while u1<0:
          u1 = u1 + v
      return u1
function_tokens: def inverse ( u , v ) : u3 , v3 = long ( u ) , long ( v ) u1 , v1 = 1L , 0L while v3 > 0 : q = u3 / v3 u1 , v1 = v1 , u1 - v1 * q u3 , v3 = v3 , u3 - v3 * q while u1 < 0 : u1 = u1 + v return u1