Function to find the cosine of the angle of the intersection of two circles with radius R1 and R2
def angle ( R1 , R2 , D ) : NEW_LINE INDENT ans = ( ( R1 * R1 + R2 * R2 - D * D ) / ( 2 * R1 * R2 ) ) NEW_LINE DEDENT