text: Length of direct common tangent between two intersecting Circles | Function to find the length of the direct common tangent ; Driver code
code: function lengtang ( r1 , r2 , d ) { document . write ( " " + " " + ( Math . sqrt ( Math . pow ( d , 2 ) - Math . pow ( ( r1 - r2 ) , 2 ) ) ) . toFixed ( 5 ) ) ; } var r1 = 4 , r2 = 6 , d = 3 ; lengtang ( r1 , r2 , d ) ;