Area of the circumcircle of any triangles with sides given | Function to find the area of the circumcircle ; the sides cannot be negative ; semi - perimeter of the circle ; area of triangle ; area of the circle ; Get the sides of the triangle ; Find and prvar the area of the circumcircle
function circlearea ( a , b , c ) { if ( a < 0 b < 0 c < 0 ) return - 1 ; var p = ( a + b + c ) / 2 ; var At = Math . sqrt ( p * ( p - a ) * ( p - b ) * ( p - c ) ) ; var A = 3.14 * Math . pow ( ( ( a * b * c ) / ( 4 * At ) ) , 2 ) ; return A ; } var a = 4 , b = 5 , c = 3 ; document . write ( circlearea ( a , b , c ) ) ;