def _winding_number(T, field):
 return int((sum([field(*_values[t][i]) for (t, i) in T]) / field(2)))

def _winding_number ( T , field ) : return int ( ( sum ( [ field ( * _values [ t ] [ i ] ) for ( t , i ) in T ] ) / field ( 2 ) ) )
compute the winding number of the input polynomial .