Area of Circumcircle of an Equilateral Triangle using Median | Function to find the equation of circle whose center is ( x1 , y1 ) and the radius of circle is r ; Function to find the equation of circle which inscribes equilateral triangle of median M ; Function call to find the circle equation ; Driver code ; Function call
function circleArea ( r ) { var pi = 3.14159265358979323846 ; return ( pi * r * r ) ; } function findCircleAreaByMedian ( m ) { var r = 2 * m / 3 ; return circleArea ( r ) ; } var m = 3 ; document . write ( findCircleAreaByMedian ( m ) . toFixed ( 4 ) ) ;