Python program to find the distance between centers of two intersecting circles if the radii and common chord length is given
def distcenter ( r1 , r2 , x ) : NEW_LINE INDENT z = ( ( ( r1 * r1 ) - ( x / 2 * x / 2 ) ) ** ( 1 / 2 ) ) + ( ( ( r2 * r2 ) - ( x / 2 * x / 2 ) ) ** ( 1 / 2 ) ) ; NEW_LINE print ( " distance ▁ between ▁ thecenters ▁ is ▁ " , end = " " ) ; NEW_LINE print ( int ( z ) ) ; NEW_LINE DEDENT