def cos_sin_deg(deg):
deg = deg % <NUM_LIT><EOL>if deg == <NUM_LIT>:<EOL><INDENT>return <NUM_LIT:0.0>, <NUM_LIT:1.0><EOL><DEDENT>elif deg == <NUM_LIT>:<EOL><INDENT>return -<NUM_LIT:1.0>, <NUM_LIT:0><EOL><DEDENT>elif deg == <NUM_LIT>:<EOL><INDENT>return <NUM_LIT:0>, -<NUM_LIT:1.0><EOL><DEDENT>rad = math.radians(deg)<EOL>return math.cos(rad), math.sin(rad)<EOL>
Return the cosine and sin for the given angle
    in degrees, with special-case handling of multiples
    of 90 for perfect right angles