parameters: (x, y)
return_statement: return Math.sum(-180 if d == 180 and t > 0 else d, t)
docstring: compute y - x and reduce to [-180,180] accurately
docstring_summary: compute y - x and reduce to [-180,180] accurately
docstring_tokens: compute y - x and reduce to [ - 180 180 ] accurately
function: def AngDiff(x, y):
      """compute y - x and reduce to [-180,180] accurately"""
  
      d, t = Math.sum(Math.AngNormalize(-x), Math.AngNormalize(y))
      d = Math.AngNormalize(d)
      return Math.sum(-180 if d == 180 and t > 0 else d, t)
function_tokens: def AngDiff ( x , y ) : d , t = Math . sum ( Math . AngNormalize ( - x ) , Math . AngNormalize ( y ) ) d = Math . AngNormalize ( d ) return Math . sum ( - 180 if d == 180 and t > 0 else d , t )