def dmp_inner_gcd(f, g, u, K):
 if (not u):
  return dup_inner_gcd(f, g, K)
 (J, (f, g)) = dmp_multi_deflate((f, g), u, K)
 (h, cff, cfg) = _dmp_inner_gcd(f, g, u, K)
 return (dmp_inflate(h, J, u, K), dmp_inflate(cff, J, u, K), dmp_inflate(cfg, J, u, K))

def dmp_inner_gcd ( f , g , u , K ) : if ( not u ) : return dup_inner_gcd ( f , g , K ) ( J , ( f , g ) ) = dmp_multi_deflate ( ( f , g ) , u , K ) ( h , cff , cfg ) = _dmp_inner_gcd ( f , g , u , K ) return ( dmp_inflate ( h , J , u , K ) , dmp_inflate ( cff , J , u , K ) , dmp_inflate ( cfg , J , u , K ) )
computes polynomial gcd and cofactors of f and g in k[x] .